Fix double free corruption form ASN_STRUCT_FREE 00/6900/1
authorwansu.yoo <wansu.yoo@samsung.com>
Thu, 21 Oct 2021 02:38:35 +0000 (11:38 +0900)
committerwansu.yoo <wansu.yoo@samsung.com>
Thu, 21 Oct 2021 02:38:35 +0000 (11:38 +0900)
commitd5c4439d0f5e2d06f0316f24fee331760c865df1
tree143c94fe6d27f84b58a7ca85fd959be1ec02bbe3
parent40c9800d92beecb080aefbed0d609afea260e5ed
Fix double free corruption form ASN_STRUCT_FREE

- Symptom: Allocated heap memory is being used in duplicate on asn struct.
So, when this heap memory is released from ASN_STRUCT_FREE, there
occurred memory double free corruption.
- Modify: Allocate memory to each member of structure.

Signed-off-by: wansu.yoo <wansu.yoo@samsung.com>
Change-Id: I625bb5918e07193196290b65ec2d64393618a03d
e2sim/e2sm_examples/kpm_e2sm/src/kpm/encode_kpm.cpp