several fixes
This commit is contained in:
parent
f11ea5b54f
commit
b1babd4b88
4 changed files with 6 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue