r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for the
[ab/samba.git/.git] / source4 / lib / util_unistr.c
index bd4aea7c4100412ef8af59e53d1d030aa0301d5c..e589e6493ad98b2831a3bde8d22eee49f01d6a9b 100644 (file)
@@ -41,7 +41,7 @@ static void load_case_tables(void)
        }
        upcase_table = map_file(lib_path(mem_ctx, "upcase.dat"), 0x20000);
        lowcase_table = map_file(lib_path(mem_ctx, "lowcase.dat"), 0x20000);
-       talloc_destroy(mem_ctx);
+       talloc_free(mem_ctx);
        if (upcase_table == NULL) {
                upcase_table = (void *)-1;
        }