virmacmap: Don't use hash table dataFree callback
virmacmap: Don't use hash table dataFree callback

Due to nature of operations we do over the string list (more
precisely due to how virStringListRemove() works), it is not the
best idea to use dataFree callback. Problem is, on MAC address
remove, the string list remove function modifies the original
list in place. Then, virHashUpdateEntry() is called which frees
all the data stored in the list rendering @newMacsList point to
freed data.

==16002== Invalid read of size 8
==16002==    at 0x50BC083: virFree (viralloc.c:582)
==16002==    by 0x513DC39: virStringListFree (virstring.c:251)
==16002==    by 0x51089B4: virMacMapHashFree (virmacmap.c:67)
==16002==    by 0x50EF30B: virHashAddOrUpdateEntry (virhash.c:352)
==16002==    by 0x50EF4FD: virHashUpdateEntry (virhash.c:415)
==16002==    by 0x5108BED: virMacMapRemoveLocked (virmacmap.c:129)
==16002==    by 0x51092D5: virMacMapRemove (virmacmap.c:346)
==16002==    by 0x402F02: testMACRemove (virmacmaptest.c:107)
==16002==    by 0x403F15: virTestRun (testutils.c:180)
==16002==    by 0x4032C4: mymain (virmacmaptest.c:205)
==16002==    by 0x405A3B: virTestMain (testutils.c:992)
==16002==    by 0x403D87: main (virmacmaptest.c:237)
==16002==  Address 0xdd5a4d0 is 0 bytes inside a block of size 24 free'd
==16002==    at 0x4C2AD6F: realloc (vg_replace_malloc.c:693)
==16002==    by 0x50BB99B: virReallocN (viralloc.c:245)
==16002==    by 0x513DC0B: virStringListRemove (virstring.c:235)
==16002==    by 0x5108BA6: virMacMapRemoveLocked (virmacmap.c:124)
==16002==    by 0x51092D5: virMacMapRemove (virmacmap.c:346)
==16002==    by 0x402F02: testMACRemove (virmacmaptest.c:107)
==16002==    by 0x403F15: virTestRun (testutils.c:180)
==16002==    by 0x4032C4: mymain (virmacmaptest.c:205)
==16002==    by 0x405A3B: virTestMain (testutils.c:992)
==16002==    by 0x403D87: main (virmacmaptest.c:237)

Signed-off-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>

crobinso/libvirt,zippy2/libvirt,crobinso/libvirt,olafhering/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,eskultety/libvirt,taget/libvirt,jfehlig/libvirt,eskultety/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,zippy2/libvirt,taget/libvirt,crobinso/libvirt,taget/libvirt,olafhering/libvirt,VenkatDatta/libvirt,eskultety/libvirt,andreabolognani/libvirt,datto/libvirt,andreabolognani/libvirt,taget/libvirt,andreabolognani/libvirt,olafhering/libvirt,zippy2/libvirt,datto/libvirt,libvirt/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,nertpinx/libvirt,nertpinx/libvirt,jardasgit/libvirt,zippy2/libvirt,andreabolognani/libvirt,olafhering/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,taget/libvirt,libvirt/libvirt,nertpinx/libvirt,datto/libvirt,jardasgit/libvirt,jfehlig/libvirt,libvirt/libvirt,andreabolognani/libvirt,nertpinx/libvirt,jardasgit/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,libvirt/libvirt,datto/libvirt,eskultety/libvirt,crobinso/libvirt,eskultety/libvirt,datto/libvirt