#46948 [Com]: ext/date/lib/parse_tz.c:99: Memory leak: buffer

From: Date: Fri, 26 Dec 2008 21:11:54 +0000
Subject: #46948 [Com]: ext/date/lib/parse_tz.c:99: Memory leak: buffer
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-132322@lists.php.net to get a copy of this message
ID: 46948 Comment by: dvice_null at yahoo dot com Reported By: dvice_null at yahoo dot com Status: Open Bug Type: Unknown/Other Function Operating System: Not relevant PHP Version: 6CVS-2008-12-26 (CVS) New Comment: Two similar problems in the same file. Let me know if you want separate bug reports about these: ---------------- ext/date/lib/parse_tz.c:124]: Memory leak: buffer if (!tz->type) { return; } ---------------- ext/date/lib/parse_tz.c:152: Memory leak: leap_buffer if (!tz->leap_times) { return; } Previous Comments: ------------------------------------------------------------------------ [2008-12-26 20:55:43] dvice_null at yahoo dot com Description: ------------ In file ext/date/lib/parse_tz.c:99: Variable "buffer" leaks memory if "cbuffer" is null in this code: if (!cbuffer) { return; } This bug was found using cppcheck: http://cppcheck.wiki.sourceforge.net/ ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46948&edit=1

« previous php.bugs (#132322) next »