]> granicus.if.org Git - php/commitdiff
Fixed memory leak
authorIlia Alshanetsky <iliaa@php.net>
Thu, 7 Jul 2005 16:27:46 +0000 (16:27 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 7 Jul 2005 16:27:46 +0000 (16:27 +0000)
ext/pdo_mysql/mysql_driver.c

index 3779d3d514ff568bfffc4352413fe6b740a0df08..c73f4d2939ba74fc727608b1a763925d430c18aa 100755 (executable)
@@ -194,6 +194,9 @@ static int mysql_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len,
                }
                return 0;
        }
+       if (nsql) {
+               efree(nsql);
+       }
 
        S->num_params = mysql_stmt_param_count(S->stmt);