slirp: Convert mbufs to use g_malloc() and g_free()
commit70f2e64e4dde21ba8b2e8d3fd682533c89a53487
authorPeter Maydell <peter.maydell@linaro.org>
Sat, 4 Feb 2017 23:08:34 +0000 (4 23:08 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 26 Feb 2017 14:39:05 +0000 (26 15:39 +0100)
treebd2bad90855aebf0d743a2daab262598b0ea9878
parent4577b09a278fe9134ecb9192c2ae2ed67a0d0aa7
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>
slirp/mbuf.c