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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: markskilbeck@php.net
New email:
PHP Version: OS:

 

 [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

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 07 14:01:28 2024 UTC