ndrdump: Don't leak plugin handle on error.
[kai/samba-autobuild/.git] / librpc / tools / ndrdump.c
index 7247d8030091ec41295ce966eff6126d61c5a3b2..692e6559480cafecaf1ba3105e71725c641394a8 100644 (file)
@@ -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;
        }