diff options
author | Marcus Boerger <helly@php.net> | 2003-03-20 19:54:22 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-03-20 19:54:22 +0000 |
commit | f14a65c7b98fe3a01354b0ebb84dafd6159a531c (patch) | |
tree | 623008ef194a9bad81d3eba0f8d82bf2ec1b0381 | |
parent | 70fff751878e08e353d6dd86ac224cc5e894ae6e (diff) | |
download | php-git-f14a65c7b98fe3a01354b0ebb84dafd6159a531c.tar.gz |
CS
-rw-r--r-- | ext/dba/dba.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/ext/dba/dba.c b/ext/dba/dba.c index 583eba9c97..3f21fcf920 100644 --- a/ext/dba/dba.c +++ b/ext/dba/dba.c @@ -315,11 +315,21 @@ PHPAPI dba_handler *dba_get_handler(const char* handler_name) */ static void dba_close(dba_info *info TSRMLS_DC) { - if (info->hnd) info->hnd->close(info TSRMLS_CC); - if (info->path) pefree(info->path, info->flags&DBA_PERSISTENT); - if (info->fp && info->fp!=info->lock.fp) php_stream_close(info->fp); - if (info->lock.fp) php_stream_close(info->lock.fp); - if (info->lock.name) pefree(info->lock.name, info->flags&DBA_PERSISTENT); + if (info->hnd) { + info->hnd->close(info TSRMLS_CC); + } + if (info->path) { + pefree(info->path, info->flags&DBA_PERSISTENT); + } + if (info->fp && info->fp!=info->lock.fp) { + php_stream_close(info->fp); + } + if (info->lock.fp) { + php_stream_close(info->lock.fp); + } + if (info->lock.name) { + pefree(info->lock.name, info->flags&DBA_PERSISTENT); + } pefree(info, info->flags&DBA_PERSISTENT); } /* }}} */ |