mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 20:38:11 +02:00
utils: plug memory leak
commit ffdfb78be1 introduced
a memory leak because of a copy-and-paste-o.
This commit is contained in:
parent
ffdfb78be1
commit
e6763666e1
1 changed files with 0 additions and 2 deletions
|
|
@ -992,7 +992,6 @@ pid_t
|
|||
ply_get_process_parent_pid (pid_t pid)
|
||||
{
|
||||
char *path;
|
||||
char *stat;
|
||||
FILE *fp;
|
||||
int ppid;
|
||||
|
||||
|
|
@ -1007,7 +1006,6 @@ ply_get_process_parent_pid (pid_t pid)
|
|||
goto out;
|
||||
}
|
||||
|
||||
stat = calloc (PAGE_SIZE, sizeof (char));
|
||||
if (fscanf (fp, "%*d %*s %*c %d", &ppid) != 1)
|
||||
{
|
||||
ply_trace ("Could not parse %s: %m", path);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue