mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-10 00:12:48 +00:00
utils: Fix leak in failed case of regression overflow checking
https://bugzilla.gnome.org/show_bug.cgi?id=783978
This commit is contained in:
parent
d32afe3f71
commit
c30c39b5ad
1 changed files with 2 additions and 0 deletions
|
@ -4250,6 +4250,8 @@ gst_calculate_linear_regression (const GstClockTime * xy,
|
||||||
G_GUINT64_FORMAT " newx[j] %" G_GUINT64_FORMAT " ybar %"
|
G_GUINT64_FORMAT " newx[j] %" G_GUINT64_FORMAT " ybar %"
|
||||||
G_GUINT64_FORMAT " newy[j] %" G_GUINT64_FORMAT, xbar, newx[j], ybar,
|
G_GUINT64_FORMAT " newy[j] %" G_GUINT64_FORMAT, xbar, newx[j], ybar,
|
||||||
newy[j]);
|
newy[j]);
|
||||||
|
if (temp == NULL && n > 64)
|
||||||
|
g_free (newx);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue