Search found 1 match

by dac
2012-08-23T05:06:35-07:00
Forum: Bugs
Topic: Unexpected memory usage in MagickGetImageFormat()
Replies: 1
Views: 2788

Unexpected memory usage in MagickGetImageFormat()

MagickGetImageFormat() returns a const char*, and since there is only a relatively small set of supported image formats, I expected it to return a pointer to a string literal. However, it does not. Bizarrely, it allocates heap memory. Failure to return this memory results in a memory leak (typically...