macio: fix possible memory leak
commit6c5819c4d685bf5f3c81edb462f4d17fb99ca2b5
authorGonglei <arei.gonglei@huawei.com>
Fri, 27 Feb 2015 07:50:14 +0000 (27 15:50 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 10 Mar 2015 05:15:34 +0000 (10 08:15 +0300)
tree69db5ffef28dff3e0573317f47a0dd59dcac120d
parentd71cdbfd540d91a6ae0005e59abfd782c424b07a
macio: fix possible memory leak

If ret = macio_initfn_ide() is less than 0, the timer_memory
will leak the memory it points to.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/misc/macio/macio.c