projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0f24fe
)
rtsp-client: Fix factory leaking in find_media() in error cases
author
Nikita Bobkov
<NikitaDBobkov@gmail.com>
Wed, 14 Sep 2016 14:48:39 +0000
(17:48 +0300)
committer
Sebastian Dröge
<sebastian@centricular.com>
Thu, 20 Oct 2016 11:01:38 +0000
(14:01 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=771488
gst/rtsp-server/rtsp-client.c
patch
|
blob
|
history
diff --git
a/gst/rtsp-server/rtsp-client.c
b/gst/rtsp-server/rtsp-client.c
index
956a9eb
..
e1e5338
100644
(file)
--- a/
gst/rtsp-server/rtsp-client.c
+++ b/
gst/rtsp-server/rtsp-client.c
@@
-729,6
+729,8
@@
no_factory:
}
no_factory_access:
{
+ g_object_unref (factory);
+ ctx->factory = NULL;
GST_ERROR ("client %p: not authorized to see factory path %s", client,
path);
/* error reply is already sent */
@@
-736,6
+738,8
@@
no_factory_access:
}
not_authorized:
{
+ g_object_unref (factory);
+ ctx->factory = NULL;
GST_ERROR ("client %p: not authorized for factory path %s", client, path);
/* error reply is already sent */
return NULL;