realmedia: fix leak in asmrules error code path

https://bugzilla.gnome.org/show_bug.cgi?id=787056
This commit is contained in:
Satya Prakash Gupta 2017-08-31 11:33:14 +05:30 committed by Tim-Philipp Müller
parent c3cf7ab5c4
commit 38b198255f

View file

@ -543,6 +543,7 @@ gst_asm_scan_parse_property (GstASMRule * rule, GstASMScan * scan)
gst_asm_scan_next_token (scan); gst_asm_scan_next_token (scan);
if (scan->token != GST_ASM_TOKEN_EQUAL) { if (scan->token != GST_ASM_TOKEN_EQUAL) {
g_warning ("= expected"); g_warning ("= expected");
g_free (key);
return; return;
} }
gst_asm_scan_next_token (scan); gst_asm_scan_next_token (scan);