]> err.no Git - systemd/commitdiff
service: fix minor memory leak
authorLennart Poettering <lennart@poettering.net>
Sat, 10 Jul 2010 22:52:28 +0000 (00:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 10 Jul 2010 22:52:28 +0000 (00:52 +0200)
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:")) {