From: Ray Strode Date: Wed, 8 Sep 2010 15:48:08 +0000 (-0400) Subject: utils: plug memory leak X-Git-Tag: 0.8.4~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6763666e1a597cc8a5d13d2d75291d378803ecd;p=thirdparty%2Fplymouth.git utils: plug memory leak commit ffdfb78be1bcda708fd89faf645b582f88c6f1d5 introduced a memory leak because of a copy-and-paste-o. --- diff --git a/src/libply/ply-utils.c b/src/libply/ply-utils.c index d8010701..ac5a5c14 100644 --- a/src/libply/ply-utils.c +++ b/src/libply/ply-utils.c @@ -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);