php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59129 memory leaks
Submitted: 2010-03-26 04:41 UTC Modified: 2010-03-26 14:31 UTC
From: zolazhou at gmail dot com Assigned:
Status: Closed Package: memcached (PECL)
PHP Version: 5.3.1 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: zolazhou at gmail dot com
New email:
PHP Version: OS:

 

 [2010-03-26 04:41 UTC] zolazhou at gmail dot com
Description:
------------
memcached_server_st not released in function PS_OPEN_FUNC

Reproduce code:
---------------
*** php_memcached.c 2010-03-26 17:37:46.000000000 +0800
--- php_memcached_1.c   2010-03-26 17:37:35.000000000 +0800
***************
*** 2425,2430 ****
--- 2425,2431 ----
        memc_sess = memcached_create(NULL);
        if (memc_sess) {
            status = memcached_server_push(memc_sess, servers);
+             memcached_server_list_free(servers);
            if (status == MEMCACHED_SUCCESS) {
                PS_SET_MOD_DATA(memc_sess);
                return SUCCESS;


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-26 14:31 UTC] andrei@php.net
It's fixed in the master branch on GitHub.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC