diff options
-rw-r--r-- | ext/mysqli/mysqli_exception.c | 1 | ||||
-rw-r--r-- | ext/mysqli/mysqli_nonapi.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ext/mysqli/mysqli_exception.c b/ext/mysqli/mysqli_exception.c index bd90560c84..adb6b2f2eb 100644 --- a/ext/mysqli/mysqli_exception.c +++ b/ext/mysqli/mysqli_exception.c @@ -47,6 +47,7 @@ void php_mysqli_throw_sql_exception(char *sqlstate, int errorno TSRMLS_DC, char if (!(MyG(report_mode) & MYSQLI_REPORT_STRICT)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "(%s/%d): %s", sqlstate, errorno, message); + efree(message); return; } diff --git a/ext/mysqli/mysqli_nonapi.c b/ext/mysqli/mysqli_nonapi.c index 683638b8e9..1ed6278e2c 100644 --- a/ext/mysqli/mysqli_nonapi.c +++ b/ext/mysqli/mysqli_nonapi.c @@ -97,6 +97,7 @@ PHP_FUNCTION(mysqli_connect) /* free mysql structure */ mysql_close(mysql->mysql); + efree(mysql); RETURN_FALSE; } |