]> xenbits.xensource.com Git - libvirt.git/commit
virNWFilterHashTablePut: Free the correct variable
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 23 May 2013 13:40:42 +0000 (15:40 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 23 May 2013 13:58:41 +0000 (15:58 +0200)
commite3d1f6aa7c4272d4b2f4d2061952f216ddb50d8e
treee158eb7ce025d22428c95d0bdb274d7fd668fa30
parent4f3729f812d6746fe1dc6c4a5e474e65b9b9787e
virNWFilterHashTablePut: Free the correct variable

In bf1fe848 I've introduced 'newName' variable to substitute the old
'const char *name' as previously we had an ugly code there:

  name = strdup(name);

However, some parts of the function were not updated, so they were still
calling VIR_FREE(name) instead of VIR_FREE(newName).
src/conf/nwfilter_params.c