提交 49cd8046 编写于 作者: J Jean-Christophe DUBOIS 提交者: Anthony Liguori

Fix qemu_free use in baum.c

baum.c is using free() instead of qemu_free().
Fix it.
Signed-off-by: NJean-Christophe DUBOIS <jcd@tribudubois.net>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 b2538b4b
...@@ -559,7 +559,7 @@ static void baum_chr_read(void *opaque) ...@@ -559,7 +559,7 @@ static void baum_chr_read(void *opaque)
if (ret == -1 && (brlapi_errno != BRLAPI_ERROR_LIBCERR || errno != EINTR)) { if (ret == -1 && (brlapi_errno != BRLAPI_ERROR_LIBCERR || errno != EINTR)) {
brlapi_perror("baum: brlapi_readKey"); brlapi_perror("baum: brlapi_readKey");
brlapi__closeConnection(baum->brlapi); brlapi__closeConnection(baum->brlapi);
free(baum->brlapi); qemu_free(baum->brlapi);
baum->brlapi = NULL; baum->brlapi = NULL;
} }
} }
...@@ -622,8 +622,8 @@ fail: ...@@ -622,8 +622,8 @@ fail:
qemu_free_timer(baum->cellCount_timer); qemu_free_timer(baum->cellCount_timer);
brlapi__closeConnection(handle); brlapi__closeConnection(handle);
fail_handle: fail_handle:
free(handle); qemu_free(handle);
free(chr); qemu_free(chr);
free(baum); qemu_free(baum);
return NULL; return NULL;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册