Sure it has memory leaks but who cares, it’s a freaking missile
twitter.com
twitter.com
Go look at an old handbook on batteries and you might find that 70% of the text is about different kind of "reserve batteries" that supply a lot of power for a missile for a short time.
// If we get here, the user has died. Terminate and reboot ..But, yeah. Increasing memory costs a predictable amount in hardware redesign. Plus some additional cost per unit, but missiles are a low-volume item. Fixing all (or enough) memory leaks costs an unknown and possibly open-ended amount of software time, and may introduce new bugs. In this instance, the trade-offs say that increasing memory is probably the better path.