diff options
Diffstat (limited to 'src/modules/swab')
-rw-r--r-- | src/modules/swab/swab.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/swab/swab.c b/src/modules/swab/swab.c index 9b7043c..343eb04 100644 --- a/src/modules/swab/swab.c +++ b/src/modules/swab/swab.c @@ -75,10 +75,8 @@ static til_module_context_t * swab_create_context(const til_module_t *module, ti return NULL; ctxt->din = din_new(12, 12, 100, seed); - if (!ctxt->din) { - free(ctxt); - return NULL; - } + if (!ctxt->din) + return til_module_context_free(&ctxt->til_module_context); return &ctxt->til_module_context; } |