diff options
author | Jeremy Allison <jra@samba.org> | 2012-12-10 10:40:12 -0800 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2012-12-12 12:15:15 +0100 |
commit | 06e3c65af559baaee7fa61ed3df1287b786d1858 (patch) | |
tree | 01d720444de54d8b662651fa78a876fb7cbf75b9 | |
parent | cf4773f929b2ac01bfe22e8113ccd3843c92bf56 (diff) | |
download | samba-06e3c65af559baaee7fa61ed3df1287b786d1858.tar.gz |
Fix bug #9455 munmap called for an address location not mapped by samba.
Signed-off-by: Jeremy Allison <jra@samba.org>
-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; } |