Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
On error, make sure to clear the temporary counted buffer of our refe…
Browse files Browse the repository at this point in the history
…rence.
  • Loading branch information
Jamie Turner committed Aug 1, 2013
1 parent 1425db6 commit 496daf2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Stcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,9 @@ void Stcp_parse_socket_buffer(nitro_pipe_t *p) {
s->opt->error_handler(nitro_error(),
s->opt->error_handler_baton);
}

if (parse_state.cbuf) {
nitro_counted_buffer_decref(parse_state.cbuf);
}
Stcp_destroy_pipe(p);
return;
}
Expand Down

0 comments on commit 496daf2

Please sign in to comment.