Commit 5dc541e
committed
Allow FREE(NULL) to match standard C behavior
The previous implementation of FREE would call exit_failure() if passed a
NULL pointer. This caused fatal crashes in several core functions (such
as Link_download_full) that rely on FREE(NULL) being a no-op, especially
during first-iteration loop resets and error-path cleanups.
Aligning FREE with standard free() behavior improves overall system
stability and prevents minor logic patterns from triggering total
application failure.1 parent ed5e9fa commit 5dc541e
1 file changed
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | | - | |
259 | 257 | | |
260 | 258 | | |
261 | 259 | | |
| |||
0 commit comments