BCommandPipe: Fix memory leak.

CID 600866. Both the header and the source of the argv getter
clearly indicate that the caller must free the memory.
This commit is contained in:
Augustin Cavalier 2015-08-04 09:29:13 -04:00
parent fb4ea396e3
commit 3e50787c0e
1 changed files with 1 additions and 0 deletions

View File

@ -362,6 +362,7 @@ BCommandPipe::operator<<(const BCommandPipe& arg)
for (int32 i = 0; i < argc; i++)
AddArg(argv[i]);
free(argv);
return *this;
}