encoding-target: Properly free when missing type field in parse_encoding_profile
authorJimmy Ohn <yongjin.ohn@lge.com>
Fri, 1 Dec 2023 08:55:28 +0000 (17:55 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 1 Dec 2023 15:01:41 +0000 (15:01 +0000)
commitc0bba84244d966ab3fcc4e679f30efcb66c63381
tree33f9ddde47dc9101e659ede201a56a6b0a48736f
parentf4ed87283bc7b172685fecfea923ae9203a654dd
encoding-target: Properly free when missing type field in parse_encoding_profile

pname and description in parse_encoding_profile function causes
memory leakages when missing the 'type' field for streamprofile.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5750>
subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-target.c