gcc - Memory leaks using SDL-1.2 , C -


i'm having trouble locating directly , indirectly memory leaks since origin in of sdl libraries seems, use here. still reachable memory, understood, sort of bug in old sdl, if there's magic way clear i'll glad know.

==19215== heap summary: ==19215==     in use @ exit: 34,164 bytes in 447 blocks ==19215==   total heap usage: 5,994 allocs, 5,547 frees, 4,200,660 bytes allocated ==19215== ==19215== 1 bytes in 1 blocks lost in loss record 1 of 102 ==19215==    @ 0x4c2ab80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==19215==    0x6338a0e: _xlcdefaultmapmodifiers (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x6338df5: xsetlocalemodifiers (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x4e75613: ??? (in /usr/lib/x86_64-linux-gnu/libsdl-1.2.so.0.11.4) ==19215==    0x4e76374: ??? (in /usr/lib/x86_64-linux-gnu/libsdl-1.2.so.0.11.4) ==19215==    0x4e66c9a: sdl_videoinit (in /usr/lib/x86_64-linux-gnu/libsdl-1.2.so.0.11.4) ==19215==    0x4e40e7b: sdl_initsubsystem (in /usr/lib/x86_64-linux-gnu/libsdl-1.2.so.0.11.4) ==19215==    0x4e40ef3: sdl_init (in /usr/lib/x86_64-linux-gnu/libsdl-1.2.so.0.11.4) ==19215==    0x40cb3d: init_sdl (in /specific/a/home/chess/chess2/chess) ==19215==    0x40cbdc: startgui (in /specific/a/home/chess/chess2/chess) ==19215==    0x40125a: main (in /specific/a/home/chess/chess2/chess)  ==19215==  ==19215== 12 bytes in 2 blocks lost in loss record 6 of 102 ==19215==    @ 0x4c2ab80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==19215==    0x535d679: strdup (strdup.c:42) ==19215==    0x6346e56: ??? (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x6347c64: _ximseticvaluedata (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x6343259: _ximlocalcreateic (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x6329884: xcreateic (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x4e7545c: ??? (in /usr/lib/x86_64-linux-gnu/libsdl-1.2.so.0.11.4) ==19215==    0x4e76374: ??? (in /usr/lib/x86_64-linux-gnu/libsdl-1.2.so.0.11.4) ==19215==    0x4e66c9a: sdl_videoinit (in /usr/lib/x86_64-linux-gnu/libsdl-1.2.so.0.11.4) ==19215==    0x4e40e7b: sdl_initsubsystem (in /usr/lib/x86_64-linux-gnu/libsdl-1.2.so.0.11.4) ==19215==    0x4e40ef3: sdl_init (in /usr/lib/x86_64-linux-gnu/libsdl-1.2.so.0.11.4) ==19215==    0x40cb3d: init_sdl (in /specific/a/home/chess/chess2/chess)  ==19215== ==19215== 192 (16 direct, 176 indirect) bytes in 1 blocks lost in loss record 85 of 102 ==19215==    @ 0x4c2ce8e: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==19215==    0x632f0fd: ??? (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x632f657: ??? (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x6330f04: ??? (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x63316bb: _xlccreatelc (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x634dc9f: _xlcdefaultloader (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x6338c4d: _xopenlc (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x6338d97: _xlccurrentlc (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x6338dcd: xsetlocalemodifiers (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x4e755c3: ??? (in /usr/lib/x86_64-linux-gnu/libsdl-1.2.so.0.11.4) ==19215==    0x4e76374: ??? (in /usr/lib/x86_64-linux-gnu/libsdl-1.2.so.0.11.4) ==19215==    0x4e66c9a: sdl_videoinit (in /usr/lib/x86_64-linux-gnu/libsdl-1.2.so.0.11.4)  ==19215== ==19215== 192 (16 direct, 176 indirect) bytes in 1 blocks lost in loss record 86 of 102 ==19215==    @ 0x4c2ce8e: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==19215==    0x632f0fd: ??? (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x632f657: ??? (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x6330f04: ??? (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x63316bb: _xlccreatelc (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x634dc9f: _xlcdefaultloader (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x6338c4d: _xopenlc (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x6338d97: _xlccurrentlc (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x6338dcd: xsetlocalemodifiers (in /usr/lib/x86_64-linux-gnu/libx11.so.6.3.0) ==19215==    0x4e75613: ??? (in /usr/lib/x86_64-linux-gnu/libsdl-1.2.so.0.11.4) ==19215==    0x4e76374: ??? (in /usr/lib/x86_64-linux-gnu/libsdl-1.2.so.0.11.4) ==19215==    0x4e66c9a: sdl_videoinit (in /usr/lib/x86_64-linux-gnu/libsdl-1.2.so.0.11.4)  ==19215== ==19215== leak summary: ==19215==    lost: 45 bytes in 5 blocks ==19215==    indirectly lost: 352 bytes in 8 blocks ==19215==      possibly lost: 0 bytes in 0 blocks ==19215==    still reachable: 33,767 bytes in 434 blocks ==19215==         suppressed: 0 bytes in 0 blocks ==19215== reachable blocks (those pointer found) not shown. ==19215== see them, rerun with: --leak-check=full --show-leak-kinds=all 


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -