]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Need to also VIR_FREE(reg)
authorLuca Tettamanti <ltettamanti@acunu.com>
Thu, 25 Apr 2013 19:44:30 +0000 (21:44 +0200)
committerGuido Günther <agx@sigxcpu.org>
Thu, 12 Sep 2013 15:35:27 +0000 (17:35 +0200)
commit3afbdfc3c496041eeef381d787aec8f48330cff6
tree4afe874d2c59be4605c68d6c004d945318e1b053
parent6a3787f98f42949e245ced43cec0feefb0e871b2
storage: Need to also VIR_FREE(reg)

Commit-id 'afc4631b' added the regfree(reg) to free resources alloc'd
during regcomp; however, reg still needed to be VIR_FREE()'d. The call
to regfree() also didn't account for possible NULL value.  Reformatted
the call to be closer to usage.
(cherry picked from commit 71da3b66a8455faf8019effe3cf504a31f91f54a)

Backported to 0.9.12 with afc4631b and its revert skipped.

Signed-off-by: Luca Tettamanti <ltettamanti acunu com>
src/storage/storage_backend_logical.c