]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Stop free'ing 'const char *' strings
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 3 Sep 2013 11:36:22 +0000 (12:36 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 5 Sep 2013 10:28:01 +0000 (11:28 +0100)
commitbbcdd9b5dc14146ab944f92807d015b03a2564ea
tree9c9b8d778e2c4f5d55ac5dfadaee5cb8aacc3482
parent41b550567918790cb304378f39c3ba369bcca28e
Stop free'ing 'const char *' strings

The VIR_FREE() macro will cast away any const-ness. This masked a
number of places where we passed a 'const char *' string to
VIR_FREE. Fortunately in all of these cases, the variable was not
in fact const data, but a heap allocated string. Fix all the
variable declarations to reflect this.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
14 files changed:
src/conf/domain_conf.c
src/conf/netdev_vlan_conf.c
src/conf/nwfilter_conf.c
src/node_device/node_device_udev.c
src/nwfilter/nwfilter_gentech_driver.c
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
src/qemu/qemu_driver.c
src/rpc/virnetsshsession.c
src/storage/storage_backend.c
src/storage/storage_driver.c
src/util/vircommand.c
src/util/virlog.c
tools/virsh-domain.c