From 89e979fe998095c4bbcbacd4530a045b90f0dffa Mon Sep 17 00:00:00 2001 From: Slava Semushin Date: Fri, 12 Jun 2009 13:31:13 +0200 Subject: Fix resource leak in lib/ldb/tools/ldbmodify.c Patch for bug #6389 --- source3/lib/ldb/tools/ldbmodify.c | 1 + source4/lib/ldb/tools/ldbmodify.c | 1 + 2 files changed, 2 insertions(+) diff --git a/source3/lib/ldb/tools/ldbmodify.c b/source3/lib/ldb/tools/ldbmodify.c index e3552b4ea3..a83053dcf1 100644 --- a/source3/lib/ldb/tools/ldbmodify.c +++ b/source3/lib/ldb/tools/ldbmodify.c @@ -108,6 +108,7 @@ int main(int argc, const char **argv) exit(1); } ret = process_file(ldb, f, &count, &failures); + fclose(f); } } diff --git a/source4/lib/ldb/tools/ldbmodify.c b/source4/lib/ldb/tools/ldbmodify.c index c3f55c6096..23a96a3976 100644 --- a/source4/lib/ldb/tools/ldbmodify.c +++ b/source4/lib/ldb/tools/ldbmodify.c @@ -105,6 +105,7 @@ int main(int argc, const char **argv) exit(1); } ret = process_file(ldb, f, &count); + fclose(f); } } -- cgit