From 32a107cfcc04aa05b4db525fcc0dd7550264dff3 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 20 Feb 2013 10:36:52 +0100 Subject: ndrdump: Don't leak plugin handle on error. Reviewed-by: Alexander Bokovoy --- librpc/tools/ndrdump.c | 1 + 1 file changed, 1 insertion(+) (limited to 'librpc') diff --git a/librpc/tools/ndrdump.c b/librpc/tools/ndrdump.c index 7247d80300..692e655948 100644 --- a/librpc/tools/ndrdump.c +++ b/librpc/tools/ndrdump.c @@ -117,6 +117,7 @@ static const struct ndr_interface_table *load_iface_from_plugin(const char *plug if (!p) { printf("%s: Unable to find DCE/RPC interface table for '%s': %s\n", plugin, pipe_name, dlerror()); talloc_free(symbol); + dlclose(handle); return NULL; } -- cgit