s3: Fix a memleak in sys_popen
[ira/wip.git] / 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: