git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a99e5d
)
Fix bug #9455 munmap called for an address location not mapped by samba.
author
Jeremy Allison
<jra@samba.org>
Mon, 10 Dec 2012 18:40:12 +0000
(10:40 -0800)
committer
Karolin Seeger
<kseeger@samba.org>
Fri, 14 Dec 2012 09:01:40 +0000
(10:01 +0100)
Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
06e3c65af559baaee7fa61ed3df1287b786d1858
)
source3/lib/util_unistr.c
patch
|
blob
|
history
diff --git
a/source3/lib/util_unistr.c
b/source3/lib/util_unistr.c
index f53ef94d69eca4b5b8c016b6c9ed75bfbe08457c..e8483d32c678afd6b3eeb90b4ac61242e87f5208 100644
(file)
--- 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;
}