From: Michael Adam Date: Sat, 27 Sep 2008 20:10:05 +0000 (+0200) Subject: [s3]testparm: free the popt context when it is no longer used. X-Git-Tag: samba-4.0.0alpha6~769^2~228^2~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=628ee436a1104655616ea1b25f920a2d2d24099a;p=thirdparty%2Fsamba.git [s3]testparm: free the popt context when it is no longer used. Michael --- diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c index 527db2d8053..ccbb2dd3918 100644 --- a/source3/utils/testparm.c +++ b/source3/utils/testparm.c @@ -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);