utils: plug memory leak

commit ffdfb78be1 introduced
a memory leak because of a copy-and-paste-o.
This commit is contained in:
Ray Strode 2010-09-08 11:48:08 -04:00
parent ffdfb78be1
commit e6763666e1

View file

@ -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);