]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
umount: Fix memory leak
authorJan Janssen <medhefgo@web.de>
Thu, 8 Mar 2018 15:44:17 +0000 (16:44 +0100)
committerJan Janssen <medhefgo@web.de>
Mon, 12 Mar 2018 12:40:14 +0000 (13:40 +0100)
src/core/umount.c

index ff3e63710c5f6b8538490ef93fd161ce98677c9b..8ba4179a0fbe4b34944ea44decf9642fd81f5e01 100644 (file)
@@ -61,6 +61,8 @@ static void mount_point_free(MountPoint **head, MountPoint *m) {
         LIST_REMOVE(mount_point, *head, m);
 
         free(m->path);
+        free(m->options);
+        free(m->type);
         free(m);
 }