Fix refcount error

This commit is contained in:
Tony Garnock-Jones 2010-12-30 00:34:18 -05:00
parent ef32c01e67
commit 0f57884762
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ sexp_t *sexp_read(IOHandle *h) {
h->error_kind = SEXP_ERROR_SYNTAX;
goto error;
}
current = sexp_pop(stack);
current = INCREF(sexp_pop(stack));
iohandle_drain(h, 1);
accumulator = INCREF(sexp_head(current));
DECREF(current, sexp_destructor);