Make sure we free CompBuffer and LastBuffer as needed in EndPage.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11755
a1ca3aef-8c08-0410-bb20-
df032aa958be
- Phone numbers in fax jobs were not properly filtered for IPP FaxOut
(<rdar://problem/16351701>)
- Updated Linux "relro" support (STR #4349)
+ - Fixed a memory leak in the label printer driver (STR #4393)
- cupsEnumDests did not set the "is_default" field (STR #4332)
- cupsDoIORequest could miss the server status, causing failed lpadmin
and other administrative commands (STR #4386)
puts("^IDR:CUPS.GRF^FS");
puts("^XZ");
-
- /*
- * Free compression buffers...
- */
-
- free(CompBuffer);
- free(LastBuffer);
break;
case ZEBRA_CPCL :
*/
free(Buffer);
+
+ if (CompBuffer)
+ {
+ free(CompBuffer);
+ CompBuffer = NULL;
+ }
+
+ if (LastBuffer)
+ {
+ free(LastBuffer);
+ LastBuffer = NULL;
+ }
}