chiark / gitweb /
service: fix minor memory leak
[elogind.git] / src / service.c
index b837cb81e59c856d54a5d2a89d8bde6d4fa256f7..481c044b6317bf80d53dc1a58cd4835d6f7a2d09 100644 (file)
@@ -631,6 +631,7 @@ static int service_load_sysv_path(Service *s, const char *path) {
                                         goto finish;
                                 }
 
+                                free(u->meta.description);
                                 u->meta.description = d;
 
                         } else if (startswith_no_case(t, "X-Interactive:")) {