[libvirt] [PATCH libvirt-python 2/2] setPyVirTypedParameter: free whole return variable on error

2014-03-18 Thread Michal Privoznik
The @ret value is built in a loop. However, if in one iteration there's an error, we should free all the fields built so far. For instance, if there's an error and the previous item was type of VIR_TYPED_PARAM_STRING we definitely must free it. Signed-off-by: Michal Privoznik mpriv...@redhat.com

Re: [libvirt] [PATCH libvirt-python 2/2] setPyVirTypedParameter: free whole return variable on error

2014-03-18 Thread Martin Kletzander
On Tue, Mar 18, 2014 at 09:26:09AM +0100, Michal Privoznik wrote: The @ret value is built in a loop. However, if in one iteration there's an error, we should free all the fields built so far. For instance, if there's an error and the previous item was type of VIR_TYPED_PARAM_STRING we