]> git.ipfire.org Git - thirdparty/libvirt.git/commit
macvtap: avoid invalid free
authorRoopa Prabhu <roprabhu@cisco.com>
Fri, 14 Oct 2011 20:41:46 +0000 (13:41 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 14 Oct 2011 20:54:47 +0000 (14:54 -0600)
commit80b077ee5ea0dd899b87d370f9fa892e727832f5
tree2c4b0d6ccf38413472a046e3b41482d3dc74c152
parent4040ff66380341bd2944208fce721cf99658ea23
macvtap: avoid invalid free

Commit 0472f39 plugged a leak, but introduced another bug:

Actually looks like physfndev is conditionally allocated in getPhysfnDev
Its better to modify getPhysfnDev to allocate physfndev every time.
src/util/macvtap.c