Repository navigation
Commit 7a1bee2
committed
fix(index): keep the publication fence off raw allocator sites
The memory-core ratchet (lint-memory-core) failed on the publication
fence commit: it added six raw free() calls, each releasing a block that
existing code allocates with raw calloc, malloc or strdup. cbm_free cannot
release such a block without the core class counters drifting, so every
new exit now reuses an existing release point instead:
- index_supervisor.c: worker_artifacts_create() creates the response, log
and publish fence files and names the one that failed, so all three
failures share the single artifact_create_failed exit.
- pipeline.c: a refused publication gate takes the existing source-changed
abort exit (same CBM_PIPELINE_ABORT_PRESERVE_DB result and cleanup).
- mcp.c: index_request_names_free() is the one release point for the
request name strings, used by index_worker_json_result() and
index_args_serving_index_servable().
Raw-site counts return to the origin/main values (index_supervisor.c 8,
pipeline.c 129, mcp.c 765) with no baseline change. No behaviour change.
Signed-off-by: Martin Vogel <[email protected]>1 parent 140e299 commit 7a1bee2
3 files changed
Lines changed: 42 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1040 | 1040 | | |
1041 | 1041 | | |
1042 | 1042 | | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
1043 | 1062 | | |
1044 | 1063 | | |
1045 | 1064 | | |
| |||
1109 | 1128 | | |
1110 | 1129 | | |
1111 | 1130 | | |
1112 | | - | |
1113 | | - | |
| 1131 | + | |
| 1132 | + | |
1114 | 1133 | | |
1115 | 1134 | | |
1116 | 1135 | | |
1117 | | - | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
1123 | | - | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
1127 | | - | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
| 1136 | + | |
1131 | 1137 | | |
1132 | 1138 | | |
1133 | 1139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11952 | 11952 | | |
11953 | 11953 | | |
11954 | 11954 | | |
| 11955 | + | |
| 11956 | + | |
| 11957 | + | |
| 11958 | + | |
| 11959 | + | |
| 11960 | + | |
| 11961 | + | |
| 11962 | + | |
| 11963 | + | |
| 11964 | + | |
11955 | 11965 | | |
11956 | | - | |
| 11966 | + | |
11957 | 11967 | | |
11958 | 11968 | | |
11959 | 11969 | | |
11960 | 11970 | | |
11961 | | - | |
11962 | | - | |
11963 | | - | |
| 11971 | + | |
11964 | 11972 | | |
11965 | 11973 | | |
11966 | 11974 | | |
| |||
12034 | 12042 | | |
12035 | 12043 | | |
12036 | 12044 | | |
12037 | | - | |
12038 | | - | |
12039 | | - | |
| 12045 | + | |
12040 | 12046 | | |
12041 | 12047 | | |
12042 | 12048 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5240 | 5240 | | |
5241 | 5241 | | |
5242 | 5242 | | |
| 5243 | + | |
5243 | 5244 | | |
5244 | 5245 | | |
5245 | | - | |
5246 | | - | |
5247 | | - | |
5248 | | - | |
5249 | | - | |
5250 | | - | |
5251 | | - | |
5252 | | - | |
5253 | | - | |
5254 | | - | |
| 5246 | + | |
| 5247 | + | |
| 5248 | + | |
5255 | 5249 | | |
| 5250 | + | |
| 5251 | + | |
| 5252 | + | |
5256 | 5253 | | |
5257 | 5254 | | |
5258 | 5255 | | |
| |||
0 commit comments