summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-06-28 04:56:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:19:03 -0500
commit2ef834cdd8a498a4cf54445fd9e291d86daaad18 (patch)
tree0c0784385cf3a883e19c3dc984e4c67291a6ddf7
parent8413a18a58a9f00f440b4252cb671976adcf8b7b (diff)
downloadsamba-2ef834cdd8a498a4cf54445fd9e291d86daaad18.tar.gz
samba-2ef834cdd8a498a4cf54445fd9e291d86daaad18.tar.bz2
samba-2ef834cdd8a498a4cf54445fd9e291d86daaad18.zip
r16614: Klocwork #2012. memleak on error path.
Jeremy. (This used to be commit 58b9adb849854610e7167e8aa02a02bd15b0bf00)
-rw-r--r--source3/utils/net_rpc_registry.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c
index 1b62adc60f..873cb7b459 100644
--- a/source3/utils/net_rpc_registry.c
+++ b/source3/utils/net_rpc_registry.c
@@ -410,6 +410,7 @@ static int rpc_registry_dump( int argc, const char **argv )
if ((nk = regfio_rootkey( registry )) == NULL) {
d_fprintf(stderr, "Could not get rootkey\n");
+ regfio_close( registry );
return 1;
}
d_printf("[%s]\n", nk->keyname);