mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
rtsp: Fix memory leaks in the gst_rtsp_url_decode_path_components() unit tests
This commit is contained in:
parent
c23c706dce
commit
3e35df72b6
1 changed files with 3 additions and 0 deletions
|
@ -68,6 +68,7 @@ GST_START_TEST (test_rtsp_url_components_1)
|
|||
fail_unless (!strcmp (comps[1], "foo"));
|
||||
fail_unless (!strcmp (comps[2], "bar"));
|
||||
|
||||
g_strfreev (comps);
|
||||
gst_rtsp_url_free (url);
|
||||
}
|
||||
|
||||
|
@ -90,6 +91,7 @@ GST_START_TEST (test_rtsp_url_components_2)
|
|||
fail_unless (!strcmp (comps[1], "foo/bar"));
|
||||
fail_unless (!strcmp (comps[2], "qux baz"));
|
||||
|
||||
g_strfreev (comps);
|
||||
gst_rtsp_url_free (url);
|
||||
}
|
||||
|
||||
|
@ -112,6 +114,7 @@ GST_START_TEST (test_rtsp_url_components_3)
|
|||
fail_unless (!strcmp (comps[1], "foo%00bar"));
|
||||
fail_unless (!strcmp (comps[2], "qux baz"));
|
||||
|
||||
g_strfreev (comps);
|
||||
gst_rtsp_url_free (url);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue