[common] Fix mem leak in gst_tensor_buffer_append_memory
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Tue, 6 Feb 2024 04:33:40 +0000 (13:33 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Tue, 6 Feb 2024 08:07:56 +0000 (17:07 +0900)
commit8c29f63efc023bf8756a99188293f278aed6d6f7
tree557cd0e4ca0619d35e4490f15a1fecc6696d795e
parent2a628fda7ad80edec0f7fa7fd6714643ab00bfea
[common] Fix mem leak in gst_tensor_buffer_append_memory

- last_memory should be released before calling
  `gst_buffer_replace_memory`

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
gst/nnstreamer/nnstreamer_plugin_api_impl.c