]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: string: Add helper to free non-NULL terminated string arrays
authorPeter Krempa <pkrempa@redhat.com>
Mon, 19 May 2014 12:20:09 +0000 (14:20 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 24 Jun 2014 08:45:43 +0000 (10:45 +0200)
commit5d4a4825849bbfb2e6066ac2dd4b8fc888ed6a1e
tree1b5ed730ce9357d8a8bd6d4fce08b2e84417938b
parent48d81cef3b2dff6fe02bd7c8f0bf4f5aff917d8c
util: string: Add helper to free non-NULL terminated string arrays

To free string lists with some strings stolen from the middle we need to
walk the complete array. Introduce a new helper that takes the string
list size to free such string lists.
src/libvirt_private.syms
src/util/virstring.c
src/util/virstring.h
tests/virstringtest.c