]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fsck: don't free fstab table on parse failure
authorDave Reisner <d@falconindy.com>
Tue, 27 Mar 2012 12:53:58 +0000 (08:53 -0400)
committerKarel Zak <kzak@redhat.com>
Tue, 10 Apr 2012 09:44:47 +0000 (11:44 +0200)
commite00fa45272e1acdb613681ac57aecc352223d2ee
tree24066dd16480c4457b8101588fe0885b478c339a
parentb2d4a671a5432220ba3fc9a09a31df66695ad926
fsck: don't free fstab table on parse failure

Even if we fail parsing, fstab gets referenced later in the code (and
will subsequently crash via heap corruption). Take the easy way out and
simply avoid deallocating this table, as it will be freed for us on
program exit regardless.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
disk-utils/fsck.c