projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d32afe3
)
utils: Fix leak in failed case of regression overflow checking
author
Heekyoung Seo
<heekyoung.seo@lge.com>
Tue, 20 Jun 2017 06:57:47 +0000
(15:57 +0900)
committer
Sebastian Dröge
<sebastian@centricular.com>
Tue, 20 Jun 2017 07:55:49 +0000
(10:55 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=783978
gst/gstutils.c
patch
|
blob
|
history
diff --git
a/gst/gstutils.c
b/gst/gstutils.c
index 3d26d47b9f47d04237786c06d445aeb961290b08..ca956fac1b8e652cc7f7ce133c91b989d34b72b8 100644
(file)
--- 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;
}