From: Heekyoung Seo Date: Tue, 20 Jun 2017 06:57:47 +0000 (+0900) Subject: utils: Fix leak in failed case of regression overflow checking X-Git-Tag: 1.16.2~748 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c30c39b5ad82e6661c52ad228f8915188072b912;p=platform%2Fupstream%2Fgstreamer.git utils: Fix leak in failed case of regression overflow checking https://bugzilla.gnome.org/show_bug.cgi?id=783978 --- diff --git a/gst/gstutils.c b/gst/gstutils.c index 3d26d47b9f..ca956fac1b 100644 --- a/gst/gstutils.c +++ b/gst/gstutils.c @@ -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; }