summaryrefslogtreecommitdiffstats
path: root/ctdb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-12-15 20:28:53 +0100
committerJeremy Allison <jra@samba.org>2013-12-17 01:57:12 +0100
commitc943937ec69f6547533f34ae83a268960395b521 (patch)
tree5bd07254782eff0e5586414afa1ab125fdbb702e /ctdb
parentb2937fd6186003740f3bef3c2f4fd54a4d3cf335 (diff)
downloadsamba-c943937ec69f6547533f34ae83a268960395b521.tar.gz
samba-c943937ec69f6547533f34ae83a268960395b521.tar.xz
samba-c943937ec69f6547533f34ae83a268960395b521.zip
Fix CID 1138340 Resource leak
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/lib/replace/test/testsuite.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/lib/replace/test/testsuite.c b/ctdb/lib/replace/test/testsuite.c
index 387f096552..df8b71f7d6 100644
--- a/ctdb/lib/replace/test/testsuite.c
+++ b/ctdb/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);