diff --git a/c/src/core/codec.c b/c/src/core/codec.c index c058bb6b5..bb68ecaed 100644 --- a/c/src/core/codec.c +++ b/c/src/core/codec.c @@ -431,6 +431,7 @@ void pn_data_clear(pn_data_t *data) data->current = 0; data->base_parent = 0; data->base_current = 0; + pn_error_clear(data->error); if (data->buf) pn_buffer_clear(data->buf); } }