[cups.bugs] [MOD] STR #2437: cupsFreeDests() doesn't free all reserved memory

Megyer Laszlo laszlomegye.r at gmail.com
Tue Jul 10 07:20:05 PDT 2007


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

This code will leak memory, however it shouldn't:

while (1)
{
  num = cupsGetDests(&dests);
  cupsFreeDests(num, dests);
  sleep (1);
}

NOTE: when I remove cupsFreeDests() line, it will leak memory twice as
fast. It's likely that only half of the memory is freed when calling
cupsFreeDests()

Link: http://www.cups.org/str.php?L2437
Version: 1.3-current





More information about the cups mailing list