INNER CODE UNIT · C
res
1oom-fork/1oom · src/fmt_pic.c:295
res = util_file_save(filename, pic->coded, pic->len);
if (res != 0) {
log_error("problem saving '%s'\n", filename);
}
lib_free(pic->coded);
pic->coded = NULL;
return (res == 0);
}
void fmt_pic_free(struct pic_s *pic)
{
if (pic) {
lib_free(pic->pix);
pic->pix = NULL;
lib_free(pic->pal);
pic->pal = NULL;
lib_free(pic->coded);
pic->coded = NULL;