summaryrefslogtreecommitdiffstats
path: root/tools/regression/lib/libc/resolv/resolv.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2013-05-25 12:11:20 +0000
committered <ed@FreeBSD.org>2013-05-25 12:11:20 +0000
commit3f589c4a65061002236515a5e50d5eafb6c1f50f (patch)
treeb6a6a45af9327825d9d6ad49d93b139fbec4d870 /tools/regression/lib/libc/resolv/resolv.c
parent987739080987bee39127ec6c8175ca15e60a57d9 (diff)
downloadFreeBSD-src-3f589c4a65061002236515a5e50d5eafb6c1f50f.zip
FreeBSD-src-3f589c4a65061002236515a5e50d5eafb6c1f50f.tar.gz
Only call free() on something we allocated.
If we were already provided a struct _citrus_iconv (e.g. through iconv_open_into()), we should not call free() in case io_init_context() fails. Instead, call it on the pointer of the allocated object, which will be NULL in case of iconv_open_into().
Diffstat (limited to 'tools/regression/lib/libc/resolv/resolv.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud