chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
core: unref slice ref after use
[elogind.git]
/
src
/
core
/
unit.c
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);