com php-src: improve fix #72558, free contribRow as well: ext/gd/libgd/gd_interpolation.c
| From: | Ferenc Kovacs | Date: | Thu, 21 Jul 2016 00:17:01 +0000 |
| Subject: | com php-src: improve fix #72558, free contribRow as well: ext/gd/libgd/gd_interpolation.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-93277@lists.php.net to get a copy of this message | ||
Commit: d57041cf2a273b6854e25e15a4261eb706a078bd
Author: Pierre Joye <pierre.php@gmail.com> Tue, 19 Jul 2016 16:33:17 +0700
Committer: Ferenc Kovacs <tyra3l@gmail.com> Thu, 21 Jul 2016 02:17:01 +0200
Parents: 8fa9d1ce28f3a894b104979df30d0b65e0f21107
Branches: PHP-5.6.24
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d57041cf2a273b6854e25e15a4261eb706a078bd
Log:
improve fix #72558, free contribRow as well
Bugs:
https://bugs.php.net/72558
Changed paths:
M ext/gd/libgd/gd_interpolation.c
Diff:
diff --git a/ext/gd/libgd/gd_interpolation.c b/ext/gd/libgd/gd_interpolation.c
index 9a7789e..fd91e56 100644
--- a/ext/gd/libgd/gd_interpolation.c
+++ b/ext/gd/libgd/gd_interpolation.c
@@ -909,6 +909,7 @@ static inline LineContribType * _gdContributionsAlloc(unsigned int line_length,
for (i=0;i<=u;i++) {
gdFree(res->ContribRow[i].Weights);
}
+ gdFree(res->ContribRow);
gdFree(res);
return NULL;
}