Skip to content

Commit

Permalink
Merge pull request #74 from wuyingfengsui/master
Browse files Browse the repository at this point in the history
fix memory leak
  • Loading branch information
soup-in-boots committed Jun 4, 2015
2 parents 629e068 + ced94ba commit 6e9462d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions c_src/cb.c
Expand Up @@ -464,6 +464,7 @@ ERL_NIF_TERM cb_mtouch(ErlNifEnv* env, handle_t* handle, void* obj)
free(results);
free(cb.ret);
free(args->keys);
free(args->exp);
free(args->nkeys);

return enif_make_tuple2(env, A_OK(env), returnValue);
Expand Down

0 comments on commit 6e9462d

Please sign in to comment.