[region] Fix memory leak in tensor_region
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Thu, 8 Feb 2024 07:31:54 +0000 (16:31 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 14 Feb 2024 05:59:13 +0000 (14:59 +0900)
commit817f4b5e8bb77087b39de8331677db299e27783f
tree7b2eb2c598f854079698ec40371663187a065010
parentbb523d4c0148e777a77a0e936bf457fd7e65ced1
[region] Fix memory leak in tensor_region

- mem argument of `gst_tensor_meta_info_append_header` should be freed.
- Properly free old memory after the call and replace the buffer with
  new memory

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
ext/nnstreamer/tensor_decoder/tensordec-tensor_region.c