Clean up perf counters attached to an HX protocol stream.

This commit is contained in:
px4dev
2012-11-03 01:10:55 -07:00
parent f11cf48bb9
commit 37682f852f
+5
View File
@@ -160,6 +160,11 @@ hx_stream_init(int fd,
void
hx_stream_free(hx_stream_t stream)
{
/* free perf counters (OK if they are NULL) */
perf_free(stream->pc_tx_frames);
perf_free(stream->pc_rx_frames);
perf_free(stream->pc_rx_errors);
free(stream);
}