chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34a317e
)
path-util: plug leak
author
Tom Gundersen
<teg@jklm.no>
Tue, 6 Jan 2015 18:12:38 +0000
(19:12 +0100)
committer
Tom Gundersen
<teg@jklm.no>
Thu, 8 Jan 2015 16:09:45 +0000
(17:09 +0100)
src/shared/path-util.c
patch
|
blob
|
history
diff --git
a/src/shared/path-util.c
b/src/shared/path-util.c
index ad9dc882b2ac1ef6c69ed2d4529589fcaaafab3d..ee87c7493defead6eacea8ee32ad68c4ed0eee38 100644
(file)
--- a/
src/shared/path-util.c
+++ b/
src/shared/path-util.c
@@
-524,6
+524,9
@@
fallback:
return -errno;
}
+ free(parent);
+ parent = NULL;
+
r = path_get_parent(t, &parent);
if (r < 0)
return r;