diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-02-04 23:08:34 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2017-02-26 15:39:05 +0100 |
commit | 70f2e64e4dde21ba8b2e8d3fd682533c89a53487 (patch) | |
tree | bd2bad90855aebf0d743a2daab262598b0ea9878 /target/lm32/translate.c | |
parent | 4577b09a278fe9134ecb9192c2ae2ed67a0d0aa7 (diff) |
slirp: Convert mbufs to use g_malloc() and g_free()
The mbuf code currently doesn't check the result of doing a malloc()
or realloc() of its data (spotted by Coverity, CID 1238946).
Since the m_inc() API assumes that extending an mbuf must succeed,
just convert to g_malloc() and g_free().
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'target/lm32/translate.c')
0 files changed, 0 insertions, 0 deletions