Fixed too early image template free

This commit is contained in:
Dmitriy Shishkov 2023-09-18 05:58:46 +03:00
parent 0be879c3cb
commit 615ae35a0e
Signed by: dm1sh
GPG Key ID: 027994B0AA357688

View File

@ -218,12 +218,12 @@ char *gen_gallery_html()
free(album_content);
free(album_html);
free(image_template);
albums_list_item = albums_list_item->next;
}
free(album_template);
free(image_template);
free_albums_list(albums_list);
return gallery_content;