19.08.2014 12:30, zhanghailiang wrote: > 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.
I also will remove the HAVE_STRDUP define from slirp_config.h -- it is no longer needed there. Applied to -trivial (with the above addition), thank you! /mjt
