]> granicus.if.org Git - php/commitdiff
fix small leak in ociexecute()
authorThies C. Arntzen <thies@php.net>
Sun, 7 Jan 2001 11:43:07 +0000 (11:43 +0000)
committerThies C. Arntzen <thies@php.net>
Sun, 7 Jan 2001 11:43:07 +0000 (11:43 +0000)
fixes: #8573
submitted by: tcarroll@chc-chimes.com

ext/oci8/oci8.c

index d6129d4d98c8bef82397e98da454addb9ebba89e..1b10b72106ae33ab3d64b6d0b77dfbec05062ace 100644 (file)
@@ -1219,12 +1219,6 @@ oci_execute(oci_statement *statement, char *func,ub4 mode)
                statement->columns = emalloc(sizeof(HashTable));
                zend_hash_init(statement->columns, 13, NULL, _oci_column_hash_dtor, 0);
                
-               OCIHandleAlloc(OCI(pEnv),
-                                          (dvoid **)&param,
-                                          OCI_DTYPE_PARAM,
-                                          0,
-                                          NULL);
-
                counter = 1;
 
                statement->error = 
@@ -1261,7 +1255,7 @@ oci_execute(oci_statement *statement, char *func,ub4 mode)
                                                                           (dvoid *)statement->pStmt,
                                                                           OCI_HTYPE_STMT,
                                                                           statement->pError,
-                                                                          (dvoid*)&param,
+                                                                          (dvoid**)&param,
                                                                           counter));
                        if (statement->error) {
                                return 0; /* XXX we loose memory!!! */