]> granicus.if.org Git - php/commitdiff
Fixed possible memory leak.
authorIlia Alshanetsky <iliaa@php.net>
Tue, 18 May 2004 23:26:53 +0000 (23:26 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 18 May 2004 23:26:53 +0000 (23:26 +0000)
ext/ingres_ii/ii.c

index a330ebb3c1ea9a543a13c4382d282d695a8ea82c..c6a312bcc7eb65f6622829c5afffd97a8131c629 100644 (file)
@@ -541,6 +541,7 @@ static void php_ii_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
                } else { /* already open persistent connection */
 
                        if (Z_TYPE_P(le) != le_ii_plink) {
+                               efree(hashed_details);
                                RETURN_FALSE;
                        }
                        /* here we should ensure that the link did not die */