com php-src: Fix memory leak: ext/gd/libgd/gd_interpolation .c

From: Date: Thu, 21 Jul 2016 00:16:22 +0000
Subject: com php-src: Fix memory leak: ext/gd/libgd/gd_interpolation .c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-93279@lists.php.net to get a copy of this message
Commit: a41745061b77398663eaa5721a804568f8fc217b Author: Stanislav Malyshev <stas@php.net> Tue, 19 Jul 2016 01:47:27 -0700 Committer: Ferenc Kovacs <tyra3l@gmail.com> Thu, 21 Jul 2016 02:16:22 +0200 Parents: a48f64c403b05da244cfd30399bffd53e910a440 Branches: PHP-5.6.24 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a41745061b77398663eaa5721a804568f8fc217b Log: Fix memory leak 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 b9c4c28..9481e3f 100644 --- a/ext/gd/libgd/gd_interpolation.c +++ b/ext/gd/libgd/gd_interpolation.c @@ -889,6 +889,7 @@ static inline LineContribType * _gdContributionsAlloc(unsigned int line_length, res->WindowSize = windows_size; res->LineLength = line_length; if (overflow2(line_length, sizeof(ContributionType))) { + gdFree(res); return NULL; } res->ContribRow = (ContributionType *) gdMalloc(line_length * sizeof(ContributionType));

« previous php.cvs (#93279) next »