php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61829 Memory leak when calling MessageFormatter's constructor twice
Submitted: 2012-04-23 18:17 UTC Modified: 2012-04-23 18:21 UTC
From: felipe@php.net Assigned: felipe (profile)
Status: Closed Package: I18N and L10N related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2012-04-23 18:17 UTC] felipe@php.net
Description:
------------
See below.

Test script:
---------------
<?php

$x = new MessageFormatter(1,1);
$x->__construct(1,1);


Actual result:
--------------
[Mon Apr 23 15:14:57 2012]  Script:  '../bug.php'
/home/felipe/dev/php-src/ext/intl/msgformat/msgformat.c(71) :  Freeing 0x7FD69DA518B0 (2 bytes), script=../bug.php
=== Total 1 memory leaks detected ===


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-04-23 18:20 UTC] felipe@php.net
Automatic comment on behalf of felipensp@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=c8865e3b84c9a3d08811b3b8f954defcd8fb621d
Log: - Fixed bug #61829 (Memory leak when calling MessageFormatter's constructor twice)
 [2012-04-23 18:21 UTC] felipe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: felipe
 [2012-04-23 18:21 UTC] felipe@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2014-10-07 23:26 UTC] stas@php.net
Automatic comment on behalf of felipensp@gmail.com
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=c8865e3b84c9a3d08811b3b8f954defcd8fb621d
Log: - Fixed bug #61829 (Memory leak when calling MessageFormatter's constructor twice)
 [2014-10-07 23:37 UTC] stas@php.net
Automatic comment on behalf of felipensp@gmail.com
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=c8865e3b84c9a3d08811b3b8f954defcd8fb621d
Log: - Fixed bug #61829 (Memory leak when calling MessageFormatter's constructor twice)
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Dec 02 02:03:33 2021 UTC