chiark / gitweb /
resolved: properly free network monitor
authorLennart Poettering <lennart@poettering.net>
Thu, 10 Jul 2014 16:25:51 +0000 (18:25 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Jul 2014 18:12:34 +0000 (20:12 +0200)
src/resolve/resolved-manager.c

index 9d073c7..b4f4d07 100644 (file)
@@ -149,6 +149,8 @@ void manager_free(Manager *m) {
         if (!m)
                 return;
 
+        sd_event_source_unref(m->network_event_source);
+        sd_network_monitor_unref(m->network_monitor);
         sd_event_unref(m->event);
 
         while ((address = m->fallback_dns)) {