acpi-build: fix array leak
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 13 Jul 2016 10:56:01 +0000 (12:56 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 8 Sep 2016 14:05:21 +0000 (18:05 +0400)
commit354fb471bd5faf527f3fa25388b8cffa6bd937d0
treeb0065568a4dc05f2b08d8b5416d478abf6ff12c5
parent8ea753718b2d1a42e9ce7b8db9f5e4e1f330e827
acpi-build: fix array leak

The free_ranges array is used as a temporary pointer array, the segment
should still be freed, however, it shouldn't free the elements themself.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Tested-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
hw/i386/acpi-build.c