git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d167fb4
)
util: Free memory in genrand torture test to satisfy sanitizer
author
Swen Schillig
<swen@linux.ibm.com>
Mon, 29 Jul 2019 08:00:26 +0000
(10:00 +0200)
committer
Andrew Bartlett
<abartlet@samba.org>
Thu, 8 Aug 2019 10:08:32 +0000
(10:08 +0000)
Signed-off-by: Swen Schillig <swen@linux.ibm.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Matthias Dieter Wallnöfer <mdw@samba.org>
lib/util/tests/genrand.c
patch
|
blob
|
history
diff --git
a/lib/util/tests/genrand.c
b/lib/util/tests/genrand.c
index 81c20bc386f4e1a86ae543df64c1625d4b41342f..3987c33f25f764303b7d52e4eece3c7b27f1dfe1 100644
(file)
--- a/
lib/util/tests/genrand.c
+++ b/
lib/util/tests/genrand.c
@@
-47,6
+47,8
@@
static bool test_generate_random_str(struct torture_context *tctx)
torture_assert_int_equal(tctx, strlen(r), 10, "right length generated");
r = generate_random_str(mem_ctx, 5);
torture_assert_int_equal(tctx, strlen(r), 5, "right length generated");
+
+ TALLOC_FREE(mem_ctx);
return true;
}