Found and fixed a few memory leaks in the gst_rtspserver, gst_onvif and gst_stream tests by running the tests in valgrind. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1742>