mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-09 13:41:59 -04:00
Fix free memory when not allocated
Bug fix by Alex Haley <ahaley@meditech.com>
This commit is contained in:
parent
58537edf0a
commit
1057bb9fa5
1 changed files with 0 additions and 1 deletions
|
@ -508,7 +508,6 @@ int plot_raster_maxicode(struct zint_symbol *symbol, int rotate_angle, int data_
|
|||
|
||||
if (!(scaled_hexagon = (char *) malloc(hexagon_size * hexagon_size))) {
|
||||
strcpy(symbol->errtxt, "656: Insufficient memory for pixel buffer");
|
||||
free(scaled_hexagon);
|
||||
free(pixelbuf);
|
||||
return ZINT_ERROR_ENCODING_PROBLEM;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue