From 2ef834cdd8a498a4cf54445fd9e291d86daaad18 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 28 Jun 2006 04:56:23 +0000 Subject: r16614: Klocwork #2012. memleak on error path. Jeremy. (This used to be commit 58b9adb849854610e7167e8aa02a02bd15b0bf00) --- source3/utils/net_rpc_registry.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3') 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); -- cgit