Skip to content

Commit

Permalink
Fix hot code upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
davisp committed Jun 7, 2012
1 parent 5eea00e commit 0bf440d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c_src/jiffy.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ reload(ErlNifEnv* env, void** priv, ERL_NIF_TERM info)
static int
upgrade(ErlNifEnv* env, void** priv, void** old_priv, ERL_NIF_TERM info)
{
*priv = *old_priv;
return 0;
enif_free(*old_priv);
return load(env, priv, info);
}

static void
Expand Down

0 comments on commit 0bf440d

Please sign in to comment.