git.samba.org
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec25989
)
Fix CID 1138340 Resource leak
author
Volker Lendecke
<vl@samba.org>
Sun, 15 Dec 2013 19:28:53 +0000
(20:28 +0100)
committer
Martin Schwenke
<martin@meltin.net>
Wed, 24 Feb 2016 05:56:48 +0000
(16:56 +1100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(Imported from commit
c943937ec69f6547533f34ae83a268960395b521
)
lib/replace/test/testsuite.c
patch
|
blob
|
history
diff --git
a/lib/replace/test/testsuite.c
b/lib/replace/test/testsuite.c
index 387f096552f4ff39db5c294c1af4fbe402d20bfd..df8b71f7d6eff5da421b65af3bbfee6635fdf86e 100644
(file)
--- a/
lib/replace/test/testsuite.c
+++ b/
lib/replace/test/testsuite.c
@@
-166,6
+166,7
@@
static int test_strdup(void)
if (strcmp("bla", x) != 0) {
printf("failure: strdup [\nfailed: expected \"bla\", got \"%s\"\n]\n",
x);
+ free(x);
return false;
}
free(x);