diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2002-10-09 13:29:10 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2002-10-09 13:29:10 +0000 |
commit | 40d1127568fc6d0b0789a5c26b835a8884587112 (patch) | |
tree | a1d1536626f6090397f6341aeb4f2983d70b7ebb /ext/sybase | |
parent | 6a590082caaff9a6497153a27f24695a38dd5052 (diff) | |
download | php-git-40d1127568fc6d0b0789a5c26b835a8884587112.tar.gz |
Fixed memory leaks.
Diffstat (limited to 'ext/sybase')
-rw-r--r-- | ext/sybase/php_sybase_db.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/sybase/php_sybase_db.c b/ext/sybase/php_sybase_db.c index 93ab6e3dff..aef81e29f5 100644 --- a/ext/sybase/php_sybase_db.c +++ b/ext/sybase/php_sybase_db.c @@ -406,6 +406,7 @@ static void php_sybase_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent) /* set a DBLOGIN record */ if ((sybase.login=dblogin())==NULL) { php_error(E_WARNING,"Sybase: Unable to allocate login record"); + efree(hashed_details); RETURN_FALSE; } @@ -479,6 +480,7 @@ static void php_sybase_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent) } else { /* we do */ if (Z_TYPE_P(le) != php_sybase_module.le_plink) { php_error(E_WARNING,"Sybase: Hashed persistent link is not a Sybase link!"); + efree(hashed_details); RETURN_FALSE; } @@ -513,6 +515,7 @@ static void php_sybase_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent) void *ptr; if (Z_TYPE_P(index_ptr) != le_index_ptr) { + efree(hashed_details); RETURN_FALSE; } link = (int) index_ptr->ptr; |