aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2014-02-28 16:51:04 +0100
committerSverker Eriksson <[email protected]>2014-02-28 16:53:04 +0100
commit2fc2df4f7f99b1e1b4e39cfd063a65d9d1266756 (patch)
treeb87944ec2a2783c00c534524cff8ba385ce55c8d /erts/emulator/test
parenta74e66a68f3b4ed590f928b4fd4f0808c6287a32 (diff)
downloadotp-2fc2df4f7f99b1e1b4e39cfd063a65d9d1266756.tar.gz
otp-2fc2df4f7f99b1e1b4e39cfd063a65d9d1266756.tar.bz2
otp-2fc2df4f7f99b1e1b4e39cfd063a65d9d1266756.zip
erts: Fix leak in nif_SUITE:resource_takeover (again)
Diffstat (limited to 'erts/emulator/test')
-rw-r--r--erts/emulator/test/nif_SUITE_data/nif_mod.c3
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 55a0d2ac4f..11b5d0cc35 100644
--- a/erts/emulator/test/nif_SUITE_data/nif_mod.c
+++ b/erts/emulator/test/nif_SUITE_data/nif_mod.c
@@ -217,7 +217,8 @@ static int upgrade(ErlNifEnv* env, void** priv, void** old_priv_data, ERL_NIF_TE
*priv = *old_priv_data;
do_load_info(env, load_info, &retval);
-
+ if (retval)
+ NifModPrivData_release(data);
return retval;
}