]> xenbits.xensource.com Git - libvirt.git/commit
virNetDevBandwidthUnplug: Don't leak @cmd
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 3 Jul 2013 07:43:14 +0000 (09:43 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 3 Jul 2013 07:43:14 +0000 (09:43 +0200)
commit5995fcf04a105c2d6cc0e077126ff8f25b43b73b
tree6c1381253f4cf9cdc594fcee2ffe614697f83198
parentbc132221853f73a8b4c6c6f13dbfc579ae8dc2a7
virNetDevBandwidthUnplug: Don't leak @cmd

When removing a TAP device, the associated bandwidth settings are
removed. Currently, the /sbin/tc is used for that. It is spawned
several times. Moreover, we use the same @cmd variable to
construct the command and its arguments. That means we need to
virCommandFree(cmd); prior to each virCommandNew(TC); which
wasn't done.
src/util/virnetdevbandwidth.c