diff options
Diffstat (limited to 'core/state.c')
| -rw-r--r-- | core/state.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/state.c b/core/state.c index dce1316..6002957 100644 --- a/core/state.c +++ b/core/state.c @@ -33,6 +33,11 @@ state_init(struct cescal_state *state, const char *pathname) return -1; } + if (ptrbox_init(&state->ptrbox) < 0) { + close(state->in_fd); + return -1; + } + return 0; } @@ -41,4 +46,5 @@ state_close(struct cescal_state *state) { close(state->in_fd); state->in_fd = -1; + ptrbox_destroy(&state->ptrbox); } |
