Page MenuHome

Freed memory access when freeing materials.
Closed, ResolvedPublic

Description

Valgrind output, fix attached.


==8962== Invalid read of size 2
==8962== at 0xED8BBB: id_us_min (library.c:169)
==8962== by 0xF1A79A: ntreeFreeTree_ex (node.c:1034)
==8962== by 0xEE9AA2: BKE_material_free_ex (material.c:110)
==8962== by 0xEE9971: BKE_material_free (material.c:83)
==8962== by 0xEDAB16: BKE_libblock_free (library.c:830)
==8962== by 0xEDAF27: free_main (library.c:963)
==8962== by 0xE215ED: clear_global (blender.c:161)
==8962== by 0xE2196D: setup_app_data (blender.c:240)
==8962== by 0xE2200B: BKE_read_file (blender.c:409)
==8962== by 0x6EC228: WM_file_read (wm_files.c:387)
==8962== by 0x6F7CFB: wm_open_mainfile_exec (wm_operators.c:1671)
==8962== by 0x6E6E10: wm_operator_invoke (wm_event_system.c:868)
==8962== Address 0x170532cc is 156 bytes inside a block of size 960 free'd
==8962== at 0x4C2AD3C: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8962== by 0x10C06E8: rem_memblock (mallocn.c:823)
==8962== by 0x10C03D5: MEM_freeN (mallocn.c:726)
==8962== by 0xEDAD10: BKE_libblock_free (library.c:917)
==8962== by 0xEDAF27: free_main (library.c:963)
==8962== by 0xE215ED: clear_global (blender.c:161)
==8962== by 0xE2196D: setup_app_data (blender.c:240)
==8962== by 0xE2200B: BKE_read_file (blender.c:409)
==8962== by 0x6EC228: WM_file_read (wm_files.c:387)
==8962== by 0x6F7CFB: wm_open_mainfile_exec (wm_operators.c:1671)
==8962== by 0x6E6E10: wm_operator_invoke (wm_event_system.c:868)
==8962== by 0x6E74C8: wm_operator_call_internal (wm_event_system.c:1065)

Event Timeline

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Resolved.Oct 3 2012, 9:35 AM