chiark / gitweb /
NEW etc.: Use NEW at non-formulaic call sites proposed.polypath.v4
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 7 Oct 2014 19:51:05 +0000 (20:51 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 9 Oct 2014 18:30:01 +0000 (19:30 +0100)
commit0a4463c662d6890a5137ccccca41dabf93fd2334
treee3ec917d084e78ea4990ae736144b78a6644add8
parent743f4244af98df144708d598ab16b01dcf43dc4f
NEW etc.: Use NEW at non-formulaic call sites

Manually replace calls to safe_malloc with NEW.  Calls where
safe_malloc was used to allocate a byte array (or a string buffer) are
left alone.

Some simple calls to allocate a single object are replaced with NEW.
(in COMM_APPLY, init_log, resolve_request, transform_cbcmac_module,
TRANSFORM_CREATE_CORE).

Some calls which were allocating arrays are replaced with NEW_ARY
(in dict_keys, ipset_new).

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
comm-common.h
conffile.c
ipaddr.c
log.c
resolver.c
transform-cbcmac.c
transform-common.h