chiark / gitweb /
path-util: plug leak
authorTom Gundersen <teg@jklm.no>
Tue, 6 Jan 2015 18:12:38 +0000 (19:12 +0100)
committerTom Gundersen <teg@jklm.no>
Thu, 8 Jan 2015 16:09:45 +0000 (17:09 +0100)
src/shared/path-util.c

index ad9dc882b2ac1ef6c69ed2d4529589fcaaafab3d..ee87c7493defead6eacea8ee32ad68c4ed0eee38 100644 (file)
@@ -524,6 +524,9 @@ fallback:
                 return -errno;
         }
 
+        free(parent);
+        parent = NULL;
+
         r = path_get_parent(t, &parent);
         if (r < 0)
                 return r;