aboutsummaryrefslogtreecommitdiff
path: root/tcp_input.c
diff options
context:
space:
mode:
authorzhanghailiang <zhang.zhanghailiang@huawei.com>2014-08-19 16:30:17 +0800
committerMichael Tokarev <mjt@tls.msk.ru>2014-08-24 13:16:32 +0400
commit2439a79b0dfcad1e066d2d1cd21873dc8b24696b (patch)
tree1d8beaaf1ea03baa3ebe3e1fade9595f9998c95f /tcp_input.c
parent646bfd53809fa8e8b818576c3e7a5d7b777151d4 (diff)
downloadslirp-2439a79b0dfcad1e066d2d1cd21873dc8b24696b.zip
slirp-2439a79b0dfcad1e066d2d1cd21873dc8b24696b.tar.gz
slirp-2439a79b0dfcad1e066d2d1cd21873dc8b24696b.tar.bz2
slirp/misc: Use the GLib memory allocation APIs
Here we don't check the return value of malloc() which may fail. Use the g_new() instead, which will abort the program when there is not enough memory. Also, use g_strdup instead of strdup and remove the unnecessary strdup function. Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Benoît Canet <benoit.canet@nodalink.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'tcp_input.c')
0 files changed, 0 insertions, 0 deletions