php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59300 CairoSurface::getMatrix() memory leak
Submitted: 2010-07-08 10:52 UTC Modified: 2010-08-26 13:27 UTC
From: markskilbeck@php.net Assigned:
Status: Not a bug Package: cairo (PECL)
PHP Version: 5.3.2 OS: Ubuntu
Private report: No CVE-ID: None
 [2010-07-08 10:52 UTC] markskilbeck@php.net
Description:
------------
Calling CairoPattern::getMatrix() on a CairoPattern results 
in a memory leak.

Reproduce code:
---------------
<?php

$m = new CairoMatrix();
$s = new CairoSolidPattern(1, 1, 1); 
$s->setMatrix($m);

$x = $s->getMatrix();

Expected result:
----------------
No errors.

Actual result:
--------------
[Thu Jul  8 15:49:14 2010]  Script:  '/usr/src/php-
cairo/clonetest.php'
/usr/src/php-cairo2/cairo_matrix.c(106) :  Freeing 0x0A2C4F18 
(48 bytes), script=/usr/src/php-cairo/clonetest.php
/usr/src/php_5_3_2/Zend/zend_alloc.c(2444) : Actual location 
(location was relayed)
=== Total 1 memory leaks detected ===

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-26 13:27 UTC] markskilbeck@php.net
Cannot seem to reproduce this now.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Jul 16 00:01:26 2019 UTC