Fix some potential memory leaks
This commit is contained in:
committed by
Michael Stapelberg
parent
6fb5d6e313
commit
5e06b1b21d
@ -1101,6 +1101,7 @@ colorpixel:
|
||||
char *hex;
|
||||
if (asprintf(&hex, "#%s", $2) == -1)
|
||||
die("asprintf()");
|
||||
free($2);
|
||||
$$ = get_colorpixel(hex);
|
||||
free(hex);
|
||||
}
|
||||
|
Reference in New Issue
Block a user