Comment Comment by earenndil You need to use nested functions if you want to have nontrivial behaviour in a cleanup, and nested functions are awful in c. parent earenndil 6 years ago