summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-11 19:09:02 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-12 00:12:43 +0100
commitd5e4ec5b1ee1e3f04a2cb0871490490eb47ef34a (patch)
tree7580541e2706eb9166c566c10314ba5bb935e15a
parentc49b30a23583ff39daaa26696bcab478d2fee0bb (diff)
test: fix minor memory leak in test-event
-rw-r--r--src/libsystemd-bus/test-event.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-bus/test-event.c b/src/libsystemd-bus/test-event.c
index 60194b99a2..65c1c296f8 100644
--- a/src/libsystemd-bus/test-event.c
+++ b/src/libsystemd-bus/test-event.c
@@ -219,6 +219,8 @@ int main(int argc, char *argv[]) {
sd_event_source_unref(z);
sd_event_source_unref(q);
+ sd_event_source_unref(w);
+
sd_event_unref(e);
close_pipe(a);