diff options
author | Jeremy Allison <jra@samba.org> | 2012-12-10 10:40:12 -0800 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2012-12-14 10:01:40 +0100 |
commit | 403ddeb5d8832ab14cbcf3e77d108cefb8386149 (patch) | |
tree | eb7ca6c7938a43c4a8bd0f52910e6b07290b6bfb | |
parent | 0a99e5d09a38e51607248290e9d9cb7f5c1b5808 (diff) | |
download | samba-403ddeb5d8832ab14cbcf3e77d108cefb8386149.tar.gz |
Fix bug #9455 munmap called for an address location not mapped by samba.
Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 06e3c65af559baaee7fa61ed3df1287b786d1858)
-rw-r--r-- | source3/lib/util_unistr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c index f53ef94d69e..e8483d32c67 100644 --- a/source3/lib/util_unistr.c +++ b/source3/lib/util_unistr.c @@ -45,6 +45,7 @@ void gfree_case_tables(void) unmap_file(upcase_table, 0x20000); else SAFE_FREE(upcase_table); + upcase_table = NULL; } if ( lowcase_table ) { @@ -52,6 +53,7 @@ void gfree_case_tables(void) unmap_file(lowcase_table, 0x20000); else SAFE_FREE(lowcase_table); + lowcase_table = NULL; } if ( valid_table ) { @@ -59,6 +61,7 @@ void gfree_case_tables(void) unmap_file(valid_table, 0x10000); else SAFE_FREE(valid_table); + valid_table = NULL; } initialized = false; } |