diff --git a/src/hdr_histogram_log.c b/src/hdr_histogram_log.c index 06ab81a..aeb816c 100644 --- a/src/hdr_histogram_log.c +++ b/src/hdr_histogram_log.c @@ -440,7 +440,7 @@ static int hdr_decode_compressed_v0( if (result != 0) { - hdr_free(h); + hdr_close(h); } else if (NULL == *histogram) { @@ -541,7 +541,7 @@ static int hdr_decode_compressed_v1( if (result != 0) { - hdr_free(h); + hdr_close(h); } else if (NULL == *histogram) { @@ -643,7 +643,7 @@ static int hdr_decode_compressed_v2( if (result != 0) { - hdr_free(h); + hdr_close(h); } else if (NULL == *histogram) {