]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: fix leak in tab_update.c test
authorKarel Zak <kzak@redhat.com>
Thu, 26 Jan 2012 13:28:08 +0000 (14:28 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 26 Jan 2012 13:28:08 +0000 (14:28 +0100)
libmount/src/tab_update.c

index e40868c0e03e347bee2ed745b198e71c40449f3b..a9be364f910fd37c77f6850330a42dd0098ecf8a 100644 (file)
@@ -780,6 +780,7 @@ static int update(const char *target, struct libmnt_fs *fs, unsigned long mountf
 
        rc = mnt_update_table(upd, NULL);
 done:
+       mnt_free_update(upd);
        return rc;
 }