mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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>
This commit is contained in:
parent
f4ed87283b
commit
c0bba84244
1 changed files with 2 additions and 0 deletions
|
@ -640,6 +640,8 @@ parse_encoding_profile (GKeyFile * in, gchar * parentprofilename,
|
||||||
proftype = g_key_file_get_value (in, profilename, "type", NULL);
|
proftype = g_key_file_get_value (in, profilename, "type", NULL);
|
||||||
if (!proftype) {
|
if (!proftype) {
|
||||||
GST_WARNING ("Missing 'type' field for streamprofile %s", profilename);
|
GST_WARNING ("Missing 'type' field for streamprofile %s", profilename);
|
||||||
|
g_free (pname);
|
||||||
|
g_free (description);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue