diff options
author | Jeremy Allison <jra@samba.org> | 2006-06-28 04:56:23 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:19:03 -0500 |
commit | 2ef834cdd8a498a4cf54445fd9e291d86daaad18 (patch) | |
tree | 0c0784385cf3a883e19c3dc984e4c67291a6ddf7 /source3/utils | |
parent | 8413a18a58a9f00f440b4252cb671976adcf8b7b (diff) | |
download | samba-2ef834cdd8a498a4cf54445fd9e291d86daaad18.tar.gz samba-2ef834cdd8a498a4cf54445fd9e291d86daaad18.tar.bz2 samba-2ef834cdd8a498a4cf54445fd9e291d86daaad18.zip |
r16614: Klocwork #2012. memleak on error path.
Jeremy.
(This used to be commit 58b9adb849854610e7167e8aa02a02bd15b0bf00)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc_registry.c | 1 |
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); |