logoalt Hacker News

spookieyesterday at 12:45 PM2 repliesview on HN

A memory leak can be unsafe though.


Replies

201984yesterday at 2:12 PM

Then why is Box::leak not marked unsafe?

estebankyesterday at 2:57 PM

"unsafe" or `unsafe`? One is the general meaning of the word, the latter is "it invokes undefined-behavior".

show 1 reply