summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-02-20 10:36:52 +0100
committerAlexander Bokovoy <ab@samba.org>2013-02-22 16:36:14 +0100
commit32a107cfcc04aa05b4db525fcc0dd7550264dff3 (patch)
treef8dcf287b6c861a05f74e62e6c63b765da9b3303 /librpc
parent312355ad59001fcc1eaa30344d69fc8c91acebc8 (diff)
downloadsamba-32a107cfcc04aa05b4db525fcc0dd7550264dff3.tar.gz
ndrdump: Don't leak plugin handle on error.
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/tools/ndrdump.c1
1 files changed, 1 insertions, 0 deletions
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;
}