From 91e3b3acf31d53389a9292fff2059f3523eb0179 Mon Sep 17 00:00:00 2001 From: "wansu.yoo" Date: Wed, 20 Oct 2021 19:21:42 +0900 Subject: [PATCH] Apply ASN_STRUCT_FREE to release the allocated PDU memory - It need to be freed the structure including freeing the memory pointed to by pointer itself. Signed-off-by: wansu.yoo Change-Id: I9412bbc1823cb21b210de4019e5f4f5e6f695cdf --- e2sim/src/messagerouting/e2ap_asn1c_codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 e2sim/src/messagerouting/e2ap_asn1c_codec.c diff --git a/e2sim/src/messagerouting/e2ap_asn1c_codec.c b/e2sim/src/messagerouting/e2ap_asn1c_codec.c old mode 100644 new mode 100755 index 111ca9f..b17431e --- a/e2sim/src/messagerouting/e2ap_asn1c_codec.c +++ b/e2sim/src/messagerouting/e2ap_asn1c_codec.c @@ -179,7 +179,7 @@ int e2ap_asn1c_encode_pdu(E2AP_PDU_t* pdu, unsigned char **buffer) LOG_D("[E2AP ASN] Encoded succesfully, encoded size = %d", len); } - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_E2AP_PDU, pdu); + ASN_STRUCT_FREE(asn_DEF_E2AP_PDU, pdu); return len; } -- 2.16.6