diff options
author | Jeremy Allison <jra@samba.org> | 2008-08-12 13:35:15 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-08-12 13:35:15 -0700 |
commit | 03991ab0734ecbb87a75238d1356fbe0e5b1d38d (patch) | |
tree | c96c68c0f2fd8359c2250621f4b0938903ae385f /source3/param | |
parent | 9caabc441b3bfe860f9719cf64b6646f58a5cb59 (diff) | |
download | samba-03991ab0734ecbb87a75238d1356fbe0e5b1d38d.tar.gz samba-03991ab0734ecbb87a75238d1356fbe0e5b1d38d.tar.bz2 samba-03991ab0734ecbb87a75238d1356fbe0e5b1d38d.zip |
Fix bug 5686 - libsmbclient segfaults with more than one SMBCCTX.
Here is a patch to allow many subsystems to be re-initialized. The only
functional change I made was to remove the null context tracking, as the memory
allocated here is designed to be left for the complete lifetime of the program.
Freeing this early (when all smb contexts are destroyed) could crash other
users of talloc.
Jeremy.
(This used to be commit 8c630efd25cf17aff59448ca05c1b44a41964b16)
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 7fd7bb2bf4..bc111df4e1 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -8693,6 +8693,7 @@ void gfree_loadparm(void) SAFE_FREE( f ); f = next; } + file_lists = NULL; /* Free resources allocated to services */ |