summaryrefslogtreecommitdiff
path: root/lib/tdb/tools
diff options
context:
space:
mode:
authorSlava Semushin <php-coder@altlinux.ru>2009-06-07 00:06:04 +0700
committerVolker Lendecke <vl@samba.org>2009-06-06 22:33:39 +0200
commit497b9e460b5defd60de89b9c5bed890f83ca86a1 (patch)
treeade6651fc28c7324e91d43b6c06964cce83c8093 /lib/tdb/tools
parent0fee798552038b730b0107540d6cfeb475803555 (diff)
downloadsamba-497b9e460b5defd60de89b9c5bed890f83ca86a1.tar.gz
lib/tdb/tools/tdbtorture.c: fixed memory leak.
Found by cppcheck: [lib/tdb/tools/tdbtorture.c:326]: (error) Memory leak: pids
Diffstat (limited to 'lib/tdb/tools')
-rw-r--r--lib/tdb/tools/tdbtorture.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tdb/tools/tdbtorture.c b/lib/tdb/tools/tdbtorture.c
index 0c9bbd613d8..c754b817f25 100644
--- a/lib/tdb/tools/tdbtorture.c
+++ b/lib/tdb/tools/tdbtorture.c
@@ -316,6 +316,8 @@ static void usage(void)
pids[j] = 0;
}
+ free(pids);
+
if (error_count == 0) {
printf("OK\n");
}