summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorin Apostol <florin.apostol@oregan.net>2016-01-13 21:32:20 +0000
committerTim-Philipp Müller <tim@centricular.com>2016-01-16 21:54:52 +0000
commit8e71f1c4d840ebbde29cdadec1dfcc0cd823f077 (patch)
treec89fba3313b5e8cab05e59c7fef6a4b2da8de93a
parent11b4c9bbd96c9941ec2174c248171e90fb027642 (diff)
downloadgstreamer-8e71f1c4d840ebbde29cdadec1dfcc0cd823f077.tar.gz
netclientclock: Fix GError memory leak in handling NTP response
Error was not released if gst_ntp_packet_receive failed. https://bugzilla.gnome.org/show_bug.cgi?id=760598
-rw-r--r--libs/gst/net/gstnetclientclock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/gst/net/gstnetclientclock.c b/libs/gst/net/gstnetclientclock.c
index fe5b456a99..f79122af73 100644
--- a/libs/gst/net/gstnetclientclock.c
+++ b/libs/gst/net/gstnetclientclock.c
@@ -835,6 +835,7 @@ gst_net_client_clock_thread (gpointer data)
if (g_error_matches (err, GST_NTP_ERROR, GST_NTP_ERROR_WRONG_VERSION)
|| g_error_matches (err, GST_NTP_ERROR, GST_NTP_ERROR_KOD_DENY)) {
GST_ERROR_OBJECT (self, "fatal receive error: %s", err->message);
+ g_clear_error (&err);
break;
} else if (g_error_matches (err, GST_NTP_ERROR,
GST_NTP_ERROR_KOD_RATE)) {