summaryrefslogtreecommitdiff
path: root/ext/odbc/php_odbc.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-06-18 00:44:40 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-06-18 00:44:40 +0000
commitd2be511ea2f53938786102ebafb796baa4d5b3c5 (patch)
tree0a6ed16ac6aad69925a075bed26aa8fca39dd2cf /ext/odbc/php_odbc.c
parentb67e80ea4f2f5fe5f71c11795c6349a616a993c0 (diff)
downloadphp-git-d2be511ea2f53938786102ebafb796baa4d5b3c5.tar.gz
MFH: Fixed possible memory leak.
Diffstat (limited to 'ext/odbc/php_odbc.c')
-rw-r--r--ext/odbc/php_odbc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index 6466330cd7..5409b45098 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -1008,11 +1008,15 @@ PHP_FUNCTION(odbc_execute)
/* Check for safe mode. */
if (PG(safe_mode) && (!php_checkuid(filename, NULL, CHECKUID_CHECK_FILE_AND_DIR))) {
- RETURN_FALSE;
- }
+ efree(filename);
+ efree(params);
+ RETURN_FALSE;
+ }
/* Check the basedir */
if (php_check_open_basedir(filename TSRMLS_CC)) {
+ efree(filename);
+ efree(params);
RETURN_FALSE;
}