diff options
author | Sverker Eriksson <[email protected]> | 2014-02-20 12:02:20 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2014-02-20 12:02:20 +0100 |
commit | 3cfcf1026418cbef3c1a35ebe8794eb99530e4ff (patch) | |
tree | 9cbc85e64000ecf574c3618b0b14d16f57356e0f /erts/emulator/test/nif_SUITE_data/nif_mod.c | |
parent | 22f6c2e3d24d00931aa9ff9a54817f6a7a61fe3d (diff) | |
parent | a1c31504a7a75f74ec90f3aab8aa0e6fbfc20c33 (diff) | |
download | otp-3cfcf1026418cbef3c1a35ebe8794eb99530e4ff.tar.gz otp-3cfcf1026418cbef3c1a35ebe8794eb99530e4ff.tar.bz2 otp-3cfcf1026418cbef3c1a35ebe8794eb99530e4ff.zip |
Merge branch 'sverk/nif_SUITE-memleak'
* sverk/nif_SUITE-memleak:
erts: Fix memory leak in nif_SUITE:resource_takeover
Diffstat (limited to 'erts/emulator/test/nif_SUITE_data/nif_mod.c')
-rw-r--r-- | erts/emulator/test/nif_SUITE_data/nif_mod.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/test/nif_SUITE_data/nif_mod.c b/erts/emulator/test/nif_SUITE_data/nif_mod.c index aed8524635..55a0d2ac4f 100644 --- a/erts/emulator/test/nif_SUITE_data/nif_mod.c +++ b/erts/emulator/test/nif_SUITE_data/nif_mod.c @@ -191,7 +191,8 @@ static int load(ErlNifEnv* env, void** priv, ERL_NIF_TERM load_info) add_call(env, data, "load"); do_load_info(env, load_info, &retval); - data->calls = 0; + if (retval) + NifModPrivData_release(data); return retval; } |