diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index 30e85f17ca2..a680cf46c34 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -845,6 +845,7 @@ PHP_FUNCTION(odbc_prepare) break; default: odbc_sql_error(conn, result->stmt, "SQLPrepare"); + efree(result); RETURN_FALSE; }