Closed mattsinc closed 2 years ago
The malloc for the imgsrc filename in dwt2d leaks memory because it does not allocate space for the trailing \0 to end the string. This commit fixes that.
I confirmed these with valgrind -- putting in the changes made the leaks go away.
Thanks, Matt. Good old strlen :) Can you merge this into dev - then we can get it in the next release?
Better?
The malloc for the imgsrc filename in dwt2d leaks memory because it does not allocate space for the trailing \0 to end the string. This commit fixes that.