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
 [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: Tue Nov 12 17:01:33 2024 UTC