summaryrefslogtreecommitdiff
path: root/ext/mssql/php_mssql.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mssql/php_mssql.c')
-rw-r--r--ext/mssql/php_mssql.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c
index 15587206a9..3522f4d287 100644
--- a/ext/mssql/php_mssql.c
+++ b/ext/mssql/php_mssql.c
@@ -1112,6 +1112,8 @@ PHP_FUNCTION(mssql_free_result)
}
ZEND_FETCH_RESOURCE(result, mssql_result *, mssql_result_index, -1, "MS SQL-result", le_result);
+ if (dbdataready(result->mssql_ptr->link))
+ dbresults(result->mssql_ptr->link);
zend_list_delete(Z_LVAL_PP(mssql_result_index));
RETURN_TRUE;
}