net: fix popt context memleak.
authorGünther Deschner <gd@samba.org>
Wed, 4 Jun 2008 00:44:24 +0000 (02:44 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 4 Jun 2008 00:44:24 +0000 (02:44 +0200)
Guenther

source/utils/net.c

index 99e1e0c8890746a514fbf2aff10db519c1ff48d3..d8b8317d2fac5b88e62b49dcbb07e345447a402a 100644 (file)
@@ -567,6 +567,8 @@ static struct functable net_func[] = {
 
        libnetapi_free(c->netapi_ctx);
 
+       poptFreeContext(pc);
+
        TALLOC_FREE(frame);
        return rc;
 }