Repository navigation
Commit 5350b5b
committed
fix(cli): render the Copilot manifest through the memory core
The PostToolUse change rendered the manifest twice per install and uninstall
(current and previous generation) and freed both with free(), which grew the
raw allocator count in src/cli/cli.c past its baseline (lint-memory-core).
The manifest is now written with cbm_json_writer_allocator() and released with
cbm_free(CBM_MEM_CLASS_OTHER, ...), including the frees that predate the
change, so cli.c drops from 170 to 166 raw sites and its baseline is lowered
to match. The rendered bytes are unchanged, so byte-exact ownership of
manifests written by earlier installs still holds.
Refs DeusData#509
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>1 parent d093794 commit 5350b5b
4 files changed
Lines changed: 24 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
4242 | 4243 | | |
4243 | 4244 | | |
4244 | 4245 | | |
4245 | | - | |
| 4246 | + | |
| 4247 | + | |
4246 | 4248 | | |
4247 | 4249 | | |
4248 | 4250 | | |
| |||
4284 | 4286 | | |
4285 | 4287 | | |
4286 | 4288 | | |
4287 | | - | |
| 4289 | + | |
| 4290 | + | |
| 4291 | + | |
4288 | 4292 | | |
4289 | 4293 | | |
4290 | 4294 | | |
| |||
4303 | 4307 | | |
4304 | 4308 | | |
4305 | 4309 | | |
4306 | | - | |
4307 | | - | |
| 4310 | + | |
| 4311 | + | |
4308 | 4312 | | |
4309 | 4313 | | |
4310 | 4314 | | |
4311 | 4315 | | |
4312 | | - | |
4313 | | - | |
| 4316 | + | |
| 4317 | + | |
4314 | 4318 | | |
4315 | 4319 | | |
4316 | 4320 | | |
4317 | 4321 | | |
4318 | 4322 | | |
4319 | 4323 | | |
4320 | 4324 | | |
4321 | | - | |
4322 | | - | |
| 4325 | + | |
| 4326 | + | |
4323 | 4327 | | |
4324 | 4328 | | |
4325 | 4329 | | |
4326 | 4330 | | |
4327 | | - | |
4328 | | - | |
| 4331 | + | |
| 4332 | + | |
4329 | 4333 | | |
4330 | 4334 | | |
4331 | 4335 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
| 287 | + | |
287 | 288 | | |
288 | 289 | | |
289 | 290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
12907 | 12908 | | |
12908 | 12909 | | |
12909 | 12910 | | |
12910 | | - | |
12911 | | - | |
| 12911 | + | |
| 12912 | + | |
12912 | 12913 | | |
12913 | 12914 | | |
12914 | 12915 | | |
| |||
12939 | 12940 | | |
12940 | 12941 | | |
12941 | 12942 | | |
12942 | | - | |
12943 | | - | |
| 12943 | + | |
| 12944 | + | |
12944 | 12945 | | |
12945 | 12946 | | |
12946 | 12947 | | |
| |||
12967 | 12968 | | |
12968 | 12969 | | |
12969 | 12970 | | |
12970 | | - | |
12971 | | - | |
| 12971 | + | |
| 12972 | + | |
12972 | 12973 | | |
12973 | 12974 | | |
12974 | 12975 | | |
| |||
0 commit comments