Commit d6f1c32
committed
Release the chunkBuffer if an exception is thrown whilst reading
If an exception was thrown due to an issue whilst reading the
MetricFamily into the slice, the buffer wasn't released and
Netty complained about ByteBuf being gc'ed without being explicitly
released.1 parent 62141f4 commit d6f1c32
File tree
2 files changed
+7
-2
lines changed- common/src/main/java/com/zegelin/prometheus/exposition
2 files changed
+7
-2
lines changedLines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
470 | 475 | | |
471 | 476 | | |
472 | 477 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | 362 | | |
| 363 | + | |
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| |||
0 commit comments