boot: fix memleaks in os-release parser
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 9 Jul 2015 11:02:54 +0000 (13:02 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 9 Jul 2015 11:02:54 +0000 (13:02 +0200)
commitd8c64b7f90b053d7bdf8d83133d9a4cc5be788dd
treea5053440a57b350ad491f1c57fd94849d5d33c0c
parenta0f7095171f03517bb44f91c67098ddd53537b54
boot: fix memleaks in os-release parser

There is no guarantee that the os-release section contains each key only
once, nor any guarantee that all keys are present. Make sure we properly
free memory in both cases.

Not that it matters much, as we're short-living, anyway. But correct code
is always nicer to read..
src/boot/efi/boot.c