]> xenbits.xensource.com Git - libvirt.git/commit
storage: Need to also VIR_FREE(reg)
authorJohn Ferlan <jferlan@redhat.com>
Thu, 10 Jan 2013 19:44:26 +0000 (14:44 -0500)
committerJán Tomko <jtomko@redhat.com>
Tue, 15 Jan 2013 11:05:34 +0000 (12:05 +0100)
commit71da3b66a8455faf8019effe3cf504a31f91f54a
tree098d5695ead4570fc17a2886b810e16acce191d5
parent1bf661caf4e926efcad6e85151a587cea5fd29f4
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.
src/storage/storage_backend_logical.c