Issue820

Title editor: memleak entering invalid song for map
Priority minor Status open
Assigned To Keywords
Linked issues Watchers

Submitted on 2015-06-03 20h03 by matthiaskrgr, last changed by matthiaskrgr.

Messages
Author: matthiaskrgr Date: 2015-06-03   20h03
when we set an invalid song for a map (file cannot be found) ;  Level Options ->
Background Music
there is a small memleak:

    #0 0x7f12dda8cb79 in __interceptor_calloc
/build/gcc-multilib/src/gcc-5-20150519/libsanitizer/asan/asan_malloc_linux.cc:54
    #1 0x4e4862 in MyMalloc /home/matthias/vcs/git/freedroid/src/text_public.c:68
    #2 0x4e603d in ReadAndMallocStringFromDataOptional
/home/matthias/vcs/git/freedroid/src/text_public.c:420
    #3 0x4e610d in ReadAndMallocStringFromData
/home/matthias/vcs/git/freedroid/src/text_public.c:436
    #4 0x484c19 in decode_header /home/matthias/vcs/git/freedroid/src/map.c:410
    #5 0x489fc2 in decode_level /home/matthias/vcs/git/freedroid/src/map.c:1114
    #6 0x48bc0d in LoadShip /home/matthias/vcs/git/freedroid/src/map.c:1298
    #7 0x49d000 in prepare_level_editor
/home/matthias/vcs/git/freedroid/src/init.c:791
    #8 0x41d2af in Startup_handle /home/matthias/vcs/git/freedroid/src/menu.c:809
    #9 0x41ce1f in RunSubMenu /home/matthias/vcs/git/freedroid/src/menu.c:746
    #10 0x41d18a in RunMenu /home/matthias/vcs/git/freedroid/src/menu.c:775
    #11 0x41d19f in StartupMenu /home/matthias/vcs/git/freedroid/src/menu.c:781
    #12 0x514b4f in main /home/matthias/vcs/git/freedroid/src/main.c:178
    #13 0x7f12db43d78f in __libc_start_main (/usr/lib/libc.so.6+0x2078f)
Author: matthiaskrgr Date: 2017-02-21   21h59
Updated strace as of February 2017 /  964c7e89881bf9c47e398a671369d091d654285e

Direct leak of 1280 byte(s) in 1 object(s) allocated from:
    #0 0x4db0de in realloc 
/home/matthias/LLVM/LLVM_dev/stage_2/llvm/projects/compiler-
rt/lib/asan/asan_malloc_linux.cc:79:3
    #1 0x55b38a in dynarray_resize 
/home/matthias/vcs/git/freedroid/src/dynarray.c:95:17
    #2 0x55b017 in dynarray_add 
/home/matthias/vcs/git/freedroid/src/dynarray.c:131:3
    #3 0x62e4c5 in decode_extension_chest 
/home/matthias/vcs/git/freedroid/src/map.c:589:3
    #4 0x62e4c5 in decode_obstacle_extensions 
/home/matthias/vcs/git/freedroid/src/map.c:704
    #5 0x62e4c5 in decode_level /home/matthias/vcs/git/freedroid/src/map.c:1116
    #6 0x62af97 in LoadShip /home/matthias/vcs/git/freedroid/src/map.c:1290:23
    #7 0x5cb8e2 in prepare_level_editor 
/home/matthias/vcs/git/freedroid/src/init.c:621:2
    #8 0x642def in Startup_handle 
/home/matthias/vcs/git/freedroid/src/menu.c:887:3
    #9 0x648ff9 in RunSubMenu /home/matthias/vcs/git/freedroid/src/menu.c:824:13
    #10 0x6480d7 in RunMenu /home/matthias/vcs/git/freedroid/src/menu.c:853:2
    #11 0x6480d7 in StartupMenu /home/matthias/vcs/git/freedroid/src/menu.c:859
    #12 0x621988 in main /home/matthias/vcs/git/freedroid/src/main.c:173:4
    #13 0x7f8aff157400 in __libc_start_main /usr/src/debug/glibc-2.24-33-
ge9e69e4/csu/../csu/libc-start.c:289
History
Date User Action Args
2017-02-21 21:59:26matthiaskrgrsetmessages: + msg3416
2015-06-03 20:03:54matthiaskrgrcreate