hackers-painters / katana-parser

A CSS parsing library in pure C99
http://hackers-painters.github.io/katana-parser
MIT License
180 stars 40 forks source link

find mem leak by valgrind #10

Open tedflowermoon opened 7 years ago

tedflowermoon commented 7 years ago

hi: I have used the parser tool, and it is very cool. It help me very much. I found a problem when I used valgrind to test it, and find mem leak. It is show in pic below:

image

I try to find it, but I am not good at it. So, I hope you and help me.

Yours Thanks.

qfish commented 7 years ago

Thank you , I will have a try with valgrind !

wildthink commented 6 years ago

I found a possible memory leak indicated by Xcode's static analysis but I haven't yet had time to examine the logic to make sure any fix would keep the expected behaviors.

katana_mem_leak