net: eepro100: fix memory leak in device uninit
commit2634ab7fe29b3f75d0865b719caf8f310d634aae
authorLi Qiang <liqiang6-s@360.cn>
Sat, 8 Oct 2016 12:07:25 +0000 (8 05:07 -0700)
committerJason Wang <jasowang@redhat.com>
Wed, 26 Oct 2016 01:57:59 +0000 (26 09:57 +0800)
tree7e56272f33676c1880ee4be66e0d0ca84b4442a4
parent9463c0778b122dee31de3e0883c6564c31d894a4
net: eepro100: fix memory leak in device uninit

The exit dispatch of eepro100 network card device doesn't free
the 's->vmstate' field which was allocated in device realize thus
leading a host memory leak. This patch avoid this.

Signed-off-by: Li Qiang <liqiang6-s@360.cn>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/eepro100.c