chiark / gitweb /
cgroup: fix minor memory leak
authorLennart Poettering <lennart@poettering.net>
Tue, 6 Apr 2010 00:35:59 +0000 (02:35 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 6 Apr 2010 00:35:59 +0000 (02:35 +0200)
cgroup.c

index 04736ac..9e1b0de 100644 (file)
--- a/cgroup.c
+++ b/cgroup.c
@@ -357,6 +357,9 @@ static int install_release_agent(Manager *m, const char *mount_point) {
                 return -EIO;
         }
 
+        free(p);
+        free(c);
+
         return 0;
 }