]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: fix two potential memory errors.
authorVaclav Dolezal <vdolezal@redhat.com>
Mon, 14 Aug 2017 10:57:52 +0000 (12:57 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 24 Aug 2017 09:21:59 +0000 (11:21 +0200)
commit5cebb2ab33e4b5a802e8d711b9001c9d717ec9c3
treed393e6adc22a1cf614061cbdb009e2d96b5e19ca
parentb428eb14a8f92afbad388aecf91779a486ba208e
libfdisk: fix two potential memory errors.

Fixes one leak and one unchecked allocation error.

[kzak@redhat.com: - don't call fdisk_ask_menu_get_result()
                    after failed fdisk_do_ask()]

Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/dos.c
libfdisk/src/gpt.c