diff options
author | Tim Potter <tpot@samba.org> | 2008-02-18 20:37:33 +1100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-02-20 18:28:41 -0800 |
commit | 737bb950d50ac6c5d4f99279bf535ae3a9963b2f (patch) | |
tree | e65cb9bacaa1e7c8b7c3fdd65035561ed49ad197 | |
parent | 47dd0700b4320bf5ac9a80e71ae82d82d4554e6a (diff) | |
download | samba-737bb950d50ac6c5d4f99279bf535ae3a9963b2f.tar.gz samba-737bb950d50ac6c5d4f99279bf535ae3a9963b2f.tar.xz samba-737bb950d50ac6c5d4f99279bf535ae3a9963b2f.zip |
Fix double free bugs after calling regfio_close()
-rw-r--r-- | source/registry/regfio.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/registry/regfio.c b/source/registry/regfio.c index 3740ff0ee4a..1c3aad7a250 100644 --- a/source/registry/regfio.c +++ b/source/registry/regfio.c @@ -1171,7 +1171,6 @@ out: if ( !(rb->mem_ctx = talloc_init( "read_regf_block" )) ) { regfio_close( rb ); - SAFE_FREE(rb); return NULL; } @@ -1182,7 +1181,6 @@ out: if ( (rb->fd = open(filename, flags, mode)) == -1 ) { DEBUG(0,("regfio_open: failure to open %s (%s)\n", filename, strerror(errno))); regfio_close( rb ); - SAFE_FREE(rb); return NULL; } @@ -1192,7 +1190,6 @@ out: if ( !init_regf_block( rb ) ) { DEBUG(0,("regfio_open: Failed to read initial REGF block\n")); regfio_close( rb ); - SAFE_FREE(rb); return NULL; } @@ -1205,7 +1202,6 @@ out: if ( !read_regf_block( rb ) ) { DEBUG(0,("regfio_open: Failed to read initial REGF block\n")); regfio_close( rb ); - SAFE_FREE(rb); return NULL; } |