several fixes

This commit is contained in:
Nishi 2026-09-23 10:38:16 +09:00
commit b1babd4b88
4 changed files with 6 additions and 4 deletions

View file

@ -79,6 +79,8 @@ Sj4Context* alloccontext(const char* dic) {
DictFile* dict;
DICTL* node;
if(ctx == NULL) return NULL;
if((ctx->work = calloc(1, sizeof(*ctx->work))) == NULL) {
free(ctx);