aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2014-03-13 21:45:12 +0100
committerSverker Eriksson <[email protected]>2014-03-13 21:45:12 +0100
commit0c7cc3253811ab6a49346101ed29297a85d00327 (patch)
treebe5947787a29aa468465d5ec2935ecc5365d3d83 /erts/emulator/test
parentdb7b9b5d5ade023d5f05a5967a1ed65a8fa9880c (diff)
parent2cacb193552f4037ef56b5a39905dd91f0f39c8c (diff)
downloadotp-0c7cc3253811ab6a49346101ed29297a85d00327.tar.gz
otp-0c7cc3253811ab6a49346101ed29297a85d00327.tar.bz2
otp-0c7cc3253811ab6a49346101ed29297a85d00327.zip
Merge branch 'sverk/valgrind-leaks'
* sverk/valgrind-leaks: erts: Suppress false leak in hipe_thread_signal_init 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;
}