Commit b0fbaf7
committed
Use split_block() helper in malloc()
malloc() previously contained open-coded logic for splitting a large
block into two smaller ones. This is now replaced with a call to the
split_block() helper introduced earlier.
This removes duplicated code and ensures consistency by reusing the
centralized split implementation, which also includes stronger
validation and error handling.1 parent 44eed33 commit b0fbaf7
1 file changed
+1
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
190 | 188 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 189 | + | |
201 | 190 | | |
202 | 191 | | |
203 | 192 | | |
| |||
0 commit comments