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

Add a Patch

Pull Requests

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Fri Aug 07 13:01:24 2020 UTC