mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +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/5744>
This commit is contained in:
parent
041e0c6cab
commit
2c19c92041
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