s3: Fix a memleak in sys_popen
authorVolker Lendecke <vl@samba.org>
Sat, 14 Nov 2009 16:23:08 +0000 (17:23 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 15 Nov 2009 11:49:47 +0000 (12:49 +0100)
Found with "dfree command" set

source3/lib/system.c

index f9cd4a2355a114a082dbe898c2ab2f072b4e7168..433169174661f8d2508ee39c5f3ffe7ccbf4397f 100644 (file)
@@ -1289,6 +1289,7 @@ static char **extract_args(TALLOC_CTX *mem_ctx, const char *command)
        }
 
        argl[i++] = NULL;
+       TALLOC_FREE(trunc_cmd);
        return argl;
 
  nomem: