| Submitter | Stefan Hajnoczi |
|---|---|
| Date | Sept. 23, 2012, 10 a.m. |
| Message ID | <1348394420-28298-13-git-send-email-stefanha@gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/186199/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 6257a04..471d060 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -3628,9 +3628,7 @@ static abi_long do_ioctl_dm(const IOCTLEntry *ie, uint8_t *buf_temp, int fd, unlock_user(argptr, arg, target_size); } out: - if (big_buf) { - free(big_buf); - } + g_free(big_buf); return ret; }