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:
4ec9a8a
)
core: unref slice ref after use
author
Lennart Poettering
<lennart@poettering.net>
Tue, 18 Jun 2013 00:07:35 +0000
(
02:07
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 18 Jun 2013 00:07:35 +0000
(
02:07
+0200)
src/core/unit.c
patch
|
blob
|
history
diff --git
a/src/core/unit.c
b/src/core/unit.c
index b97158ff06bb3608687ef6da9da36db34d8558c2..90ff43da668e2a909237238080cfc33172f641b6 100644
(file)
--- a/
src/core/unit.c
+++ b/
src/core/unit.c
@@
-416,6
+416,8
@@
void unit_free(Unit *u) {
condition_free_list(u->conditions);
+ unit_ref_unset(&u->slice);
+
while (u->refs)
unit_ref_unset(u->refs);