mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kdesu: plug a memory leek in process executor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
01be7e289b
commit
c689c26b26
1 changed files with 2 additions and 0 deletions
|
@ -358,6 +358,8 @@ int PtyProcess::exec(const QByteArray &command, const QList<QByteArray> &args)
|
|||
argp[i] = NULL;
|
||||
|
||||
execv(path, const_cast<char **>(argp));
|
||||
free(argp);
|
||||
|
||||
kError(kdesuDebugArea()) << "execv(" << path << "):" << perror;
|
||||
_exit(1);
|
||||
return -1; // Shut up compiler. Never reached.
|
||||
|
|
Loading…
Add table
Reference in a new issue