diff options
author | Slava Semushin <php-coder@altlinux.org> | 2009-06-12 13:31:13 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-06-18 13:49:26 +1000 |
commit | 89e979fe998095c4bbcbacd4530a045b90f0dffa (patch) | |
tree | 9cb4e69c1325faabe509e188cf22f031adfd6bea | |
parent | e0caf399e19082b982b09f3c016044d561f7860a (diff) | |
download | samba-89e979fe998095c4bbcbacd4530a045b90f0dffa.tar.gz samba-89e979fe998095c4bbcbacd4530a045b90f0dffa.tar.xz samba-89e979fe998095c4bbcbacd4530a045b90f0dffa.zip |
Fix resource leak in lib/ldb/tools/ldbmodify.c
Patch for bug #6389
-rw-r--r-- | source3/lib/ldb/tools/ldbmodify.c | 1 | ||||
-rw-r--r-- | source4/lib/ldb/tools/ldbmodify.c | 1 |
2 files changed, 2 insertions, 0 deletions
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); } } |