[s3]testparm: free the popt context when it is no longer used.
authorMichael Adam <obnox@samba.org>
Sat, 27 Sep 2008 20:10:05 +0000 (22:10 +0200)
committerMichael Adam <obnox@samba.org>
Sat, 27 Sep 2008 20:28:25 +0000 (22:28 +0200)
Michael

source3/utils/testparm.c

index 527db2d805330597ad2e4ca27fedccf820a53a86..ccbb2dd3918e4d2e3e3b8f90c894ad8417245cc6 100644 (file)
@@ -329,6 +329,8 @@ rameter is ignored when using CUPS libraries.\n",
        cname = poptGetArg(pc);
        caddr = poptGetArg(pc);
 
+       poptFreeContext(pc);
+
        if ( cname && ! caddr ) {
                printf ( "ERROR: You must specify both a machine name and an IP address.\n" );
                return(1);