Repository navigation
Commit b94afb4
committed
chore(lint): route the DeusData#2134 root-owner scratch through the memory core
The memory-core ratchet flagged src/mcp/mcp.c growing by 10 raw allocator
sites (784 -> 794) from index_root_owner_resolve and its caller. The owner
list buffer, which this code allocates and frees itself, now uses
cbm_realloc/cbm_free (class other). Strings handed over by other APIs
(cbm_project_name_from_path, heap_strdup, the index argument strings) are
released through safe_free, as elsewhere in the file, so no memory the core
never counted reaches cbm_free. Behaviour is unchanged; mcp.c is back at its
baseline of 784.
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>1 parent 155d147 commit b94afb4
1 file changed
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11272 | 11272 | | |
11273 | 11273 | | |
11274 | 11274 | | |
11275 | | - | |
| 11275 | + | |
11276 | 11276 | | |
11277 | 11277 | | |
11278 | 11278 | | |
| |||
11293 | 11293 | | |
11294 | 11294 | | |
11295 | 11295 | | |
11296 | | - | |
| 11296 | + | |
11297 | 11297 | | |
11298 | 11298 | | |
11299 | 11299 | | |
11300 | 11300 | | |
11301 | 11301 | | |
11302 | 11302 | | |
11303 | | - | |
| 11303 | + | |
11304 | 11304 | | |
11305 | 11305 | | |
11306 | 11306 | | |
| |||
11339 | 11339 | | |
11340 | 11340 | | |
11341 | 11341 | | |
11342 | | - | |
| 11342 | + | |
11343 | 11343 | | |
11344 | 11344 | | |
11345 | | - | |
| 11345 | + | |
11346 | 11346 | | |
11347 | 11347 | | |
11348 | 11348 | | |
11349 | | - | |
| 11349 | + | |
11350 | 11350 | | |
11351 | | - | |
| 11351 | + | |
11352 | 11352 | | |
11353 | 11353 | | |
11354 | 11354 | | |
| |||
11361 | 11361 | | |
11362 | 11362 | | |
11363 | 11363 | | |
11364 | | - | |
| 11364 | + | |
11365 | 11365 | | |
11366 | 11366 | | |
11367 | 11367 | | |
| |||
11524 | 11524 | | |
11525 | 11525 | | |
11526 | 11526 | | |
11527 | | - | |
| 11527 | + | |
11528 | 11528 | | |
11529 | 11529 | | |
11530 | 11530 | | |
11531 | 11531 | | |
11532 | | - | |
| 11532 | + | |
11533 | 11533 | | |
11534 | 11534 | | |
11535 | 11535 | | |
| |||
0 commit comments