-
Notifications
You must be signed in to change notification settings - Fork 614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory Leak in png2pnm #288
Comments
@ctruta : The issue is:
|
There is no memory leak here, the program has exited with a fatal error (and this is the correct behavior). |
issue: #239 unsolved. The same error in the new version 1.6.37:
root@KWE1000859128:/home/test/libpng-1.6.37/contrib/pngminus# ./png2pnm crash_png2pnm_memory_leak 1.pnm
libpng error: Read Error
PNG2PNM
Error: unsuccessful conversion of PNG-image
=================================================================
==100062==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 160 byte(s) in 1 object(s) allocated from:
#0 0x4b8da8 (/home/test/libpng-1.6.37/contrib/pngminus/png2pnm+0x4b8da8)
#1 0x4ebb16 (/home/test/libpng-1.6.37/contrib/pngminus/png2pnm+0x4ebb16)
#2 0x4eab4d (/home/test/libpng-1.6.37/contrib/pngminus/png2pnm+0x4eab4d)
#3 0x7f42e320582f (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
Indirect leak of 2400 byte(s) in 1 object(s) allocated from:
#0 0x4b8da8 (/home/test/libpng-1.6.37/contrib/pngminus/png2pnm+0x4b8da8)
#1 0x4eba76 (/home/test/libpng-1.6.37/contrib/pngminus/png2pnm+0x4eba76)
#2 0x4eab4d (/home/test/libpng-1.6.37/contrib/pngminus/png2pnm+0x4eab4d)
#3 0x7f42e320582f (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
SUMMARY: AddressSanitizer: 2560 byte(s) leaked in 2 allocation(s).
The text was updated successfully, but these errors were encountered: