]> xenbits.xensource.com Git - libvirt.git/commit
util: Rework virStringListAdd
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 26 Jul 2018 14:10:10 +0000 (16:10 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 27 Jul 2018 13:47:45 +0000 (15:47 +0200)
commit71a390e0fdb4e6cbeaef4c9045a501a6c8de5412
tree42f4a5aa8eb9c60b7b7d2912402d3b5328a50a78
parentf2a519a50660e267e9600b83130e668265cca628
util: Rework virStringListAdd

So every caller does the same: they use virStringListAdd() to add
new item into the list and then free the old copy to replace it
with new list. It's not very memory effective, nor environmental
friendly.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/util/virmacmap.c
src/util/virstring.c
src/util/virstring.h
tests/virstringtest.c