Repository navigation
Commit 3a1b5a1
committed
refactor(git,store): allocate freshness data through the memory core
The status samples and the stored indexed_checkout_sha were the only
new raw malloc/realloc/free sites, which grew the memory-core ratchet
(scripts/lint-memory-core.py) for git_context.c and store.c. They now
use cbm_alloc/cbm_realloc/cbm_free and cbm_mem_strdup, with one class
per pointer (OTHER for the samples, STORE for the column value).
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>1 parent 5c51d71 commit 3a1b5a1
2 files changed
Lines changed: 12 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
524 | 525 | | |
525 | 526 | | |
526 | 527 | | |
527 | | - | |
| 528 | + | |
528 | 529 | | |
529 | 530 | | |
530 | 531 | | |
531 | 532 | | |
532 | 533 | | |
533 | 534 | | |
534 | | - | |
| 535 | + | |
| 536 | + | |
535 | 537 | | |
536 | | - | |
| 538 | + | |
537 | 539 | | |
538 | 540 | | |
539 | 541 | | |
| |||
668 | 670 | | |
669 | 671 | | |
670 | 672 | | |
671 | | - | |
| 673 | + | |
672 | 674 | | |
673 | | - | |
| 675 | + | |
674 | 676 | | |
675 | | - | |
| 677 | + | |
676 | 678 | | |
677 | | - | |
| 679 | + | |
678 | 680 | | |
679 | 681 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5072 | 5072 | | |
5073 | 5073 | | |
5074 | 5074 | | |
5075 | | - | |
| 5075 | + | |
5076 | 5076 | | |
5077 | 5077 | | |
5078 | 5078 | | |
| |||
5117 | 5117 | | |
5118 | 5118 | | |
5119 | 5119 | | |
5120 | | - | |
| 5120 | + | |
| 5121 | + | |
5121 | 5122 | | |
5122 | 5123 | | |
5123 | 5124 | | |
| |||
0 commit comments