Commit a0207baa authored by Heekyoung Seo's avatar Heekyoung Seo Committed by Sebastian Dröge

utils: Fix leak in failed case of regression overflow checking

https://bugzilla.gnome.org/show_bug.cgi?id=783978
parent 9fc5d66e
......@@ -4252,6 +4252,8 @@ gst_calculate_linear_regression (const GstClockTime * xy,
G_GUINT64_FORMAT " newx[j] %" G_GUINT64_FORMAT " ybar %"
G_GUINT64_FORMAT " newy[j] %" G_GUINT64_FORMAT, xbar, newx[j], ybar,
newy[j]);
if (temp == NULL && n > 64)
g_free (newx);
return FALSE;
}
......
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