Repository navigation
Commit e0cfd2a
committed
librepgp: store raw budget pointer in the dump limiter param
The limiting source param held a shared_ptr which was released via
free() instead of its destructor, leaking one reference (and with it
the whole shared budget allocation) per compressed packet - caught by
LeakSanitizer on the CI sanitizer legs. The parent dump context owns
the budget and always outlives the limiter, so a raw pointer suffices.1 parent 7bc1c38 commit e0cfd2a
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
584 | | - | |
585 | | - | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
586 | 587 | | |
587 | 588 | | |
588 | 589 | | |
| |||
611 | 612 | | |
612 | 613 | | |
613 | 614 | | |
614 | | - | |
615 | | - | |
616 | | - | |
| 615 | + | |
617 | 616 | | |
618 | 617 | | |
619 | 618 | | |
| |||
1494 | 1493 | | |
1495 | 1494 | | |
1496 | 1495 | | |
1497 | | - | |
| 1496 | + | |
1498 | 1497 | | |
1499 | 1498 | | |
1500 | 1499 | | |
| |||
2601 | 2600 | | |
2602 | 2601 | | |
2603 | 2602 | | |
2604 | | - | |
| 2603 | + | |
2605 | 2604 | | |
2606 | 2605 | | |
2607 | 2606 | | |
| |||
0 commit comments