]> granicus.if.org Git - php/commitdiff
CS
authorMarcus Boerger <helly@php.net>
Thu, 20 Mar 2003 19:54:22 +0000 (19:54 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 20 Mar 2003 19:54:22 +0000 (19:54 +0000)
ext/dba/dba.c

index 583eba9c97262dec564cbe4dbea0a04a457b0ff7..3f21fcf9201d64fe6a658ae89703cd6494af3968 100644 (file)
@@ -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);
 }
 /* }}} */