summaryrefslogtreecommitdiff
path: root/src/shared/util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-01-17 17:38:00 +0100
committerLennart Poettering <lennart@poettering.net>2013-01-17 17:38:13 +0100
commit86ed7ec58b9b6a0907bbb3b8d07c930e52915de0 (patch)
treefe186e902631d59b88db944b48b10feb873f43d8 /src/shared/util.c
parent2fd9b50ce2a3dd31bf0831ca80b01ac85ef50999 (diff)
util: fix bad memory access
Diffstat (limited to 'src/shared/util.c')
-rw-r--r--src/shared/util.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/shared/util.c b/src/shared/util.c
index 0161f3e957..8e1409671f 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -439,7 +439,6 @@ int get_parent_of_pid(pid_t pid, pid_t *_ppid) {
if (!fgets(line, sizeof(line), f)) {
r = feof(f) ? -EIO : -errno;
- fclose(f);
return r;
}