summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatya Prakash Gupta <sp.gupta@samsung.com>2017-08-31 11:33:14 +0530
committerEdward Hervey <bilboed@bilboed.com>2017-12-01 10:58:10 +0100
commit31471aae367f6ad88e3534fd923086c4e17221ea (patch)
treeb80aff3efea69df8f40e26b7577a5d11664c3be9
parentb6ed0d85944b9606d51b57eb2d3e5e029b95f8e0 (diff)
realmedia: fix leak in asmrules error code path
https://bugzilla.gnome.org/show_bug.cgi?id=787056
-rw-r--r--gst/realmedia/asmrules.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/realmedia/asmrules.c b/gst/realmedia/asmrules.c
index 1d52568a..af2f8a0a 100644
--- a/gst/realmedia/asmrules.c
+++ b/gst/realmedia/asmrules.c
@@ -543,6 +543,7 @@ gst_asm_scan_parse_property (GstASMRule * rule, GstASMScan * scan)
gst_asm_scan_next_token (scan);
if (scan->token != GST_ASM_TOKEN_EQUAL) {
g_warning ("= expected");
+ g_free (key);
return;
}
gst_asm_scan_next_token (scan);