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 b837cb8..481c044 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:")) {