Practice safe free()'ing by setting alloc to NULL to
authorkrw <krw@openbsd.org>
Thu, 30 Aug 2018 13:07:19 +0000 (13:07 +0000)
committerkrw <krw@openbsd.org>
Thu, 30 Aug 2018 13:07:19 +0000 (13:07 +0000)
commita9e37dfe64d7b3ab2b26c047801a652d9a309d6e
tree62f4e59dc17c2fb83ad2ff281cf7e4cd6430e075
parentb308f3d45d71fb5203b31f11dde306981ab9cf65
Practice safe free()'ing by setting alloc to NULL to
prevent double free.

Spotted by jsg@, simpler fix by myself and miko@.

ok jsg@
sbin/disklabel/editor.c