pajoye                                   Wed, 27 Jan 2010 16:52:36 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=294104

Log:
- fix leak

Changed paths:
    U   php/php-src/branches/PHP_5_3/TSRM/tsrm_win32.c
    U   php/php-src/trunk/TSRM/tsrm_win32.c

Modified: php/php-src/branches/PHP_5_3/TSRM/tsrm_win32.c
===================================================================
--- php/php-src/branches/PHP_5_3/TSRM/tsrm_win32.c      2010-01-27 16:48:41 UTC 
(rev 294103)
+++ php/php-src/branches/PHP_5_3/TSRM/tsrm_win32.c      2010-01-27 16:52:36 UTC 
(rev 294104)
@@ -170,13 +170,13 @@

        /* ConvertSidToStringSid(pTokenUser->User.Sid, &ptcSidOwner); */
        pResultSid = malloc(sid_len);
-
        if (!pResultSid) {
                goto Finished;
        }
        if (!CopySid(sid_len, pResultSid, pTokenUser->User.Sid)) {
                goto Finished;
        }
+       HeapFree(GetProcessHeap(), 0, (LPVOID)pTokenUser);
        return pResultSid;

 Finished:

Modified: php/php-src/trunk/TSRM/tsrm_win32.c
===================================================================
--- php/php-src/trunk/TSRM/tsrm_win32.c 2010-01-27 16:48:41 UTC (rev 294103)
+++ php/php-src/trunk/TSRM/tsrm_win32.c 2010-01-27 16:52:36 UTC (rev 294104)
@@ -176,6 +176,7 @@
        if (!CopySid(sid_len, pResultSid, pTokenUser->User.Sid)) {
                goto Finished;
        }
+       HeapFree(GetProcessHeap(), 0, (LPVOID)pTokenUser);
        return pResultSid;

 Finished:

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to