utils: Fix leak in failed case of regression overflow checking

https://bugzilla.gnome.org/show_bug.cgi?id=783978
This commit is contained in:
Heekyoung Seo 2017-06-20 15:57:47 +09:00 committed by Sebastian Dröge
parent d32afe3f71
commit c30c39b5ad

View file

@ -4250,6 +4250,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;
}