diff options
author | Harald Welte <laforge@gnumonks.org> | 2015-12-18 14:57:04 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2015-12-18 14:58:34 +0100 |
commit | 629391321f10490c5b5f1edc5035ea2e5679ad3e (patch) | |
tree | f52f1edbf531ccd6689907854b0a16ae4ed2e168 /src/hnbap_common.c | |
parent | 8526d158f893283fee0b176ef9c7401133949815 (diff) |
{hnbap,ranap,rua}_common: use FREEMEM(), not free() directly
If we allocate with CALLOC/MALLOC macros, we need to release memory via the
same API.
Diffstat (limited to 'src/hnbap_common.c')
-rw-r--r-- | src/hnbap_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hnbap_common.c b/src/hnbap_common.c index cdf38e0..2cd7ee2 100644 --- a/src/hnbap_common.c +++ b/src/hnbap_common.c @@ -235,7 +235,7 @@ IE_t *hnbap_new_ie(ProtocolIE_ID_t id, if (asn1_xer_print) if (xer_fprint(stdout, &asn_DEF_IE, buff) < 0) { - free(buff); + FREEMEM(buff); return NULL; } |