Commit f875bec5 authored by Florin Apostol's avatar Florin Apostol Committed by Sebastian Dröge

netclientclock: Fix GError memory leak in handling NTP response

Error was not released if gst_ntp_packet_receive failed.
parent 3da58942
......@@ -740,6 +740,7 @@ gst_net_client_internal_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);
} else if (g_error_matches (err, GST_NTP_ERROR,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment