3 ms·
It’s a GNU extension, and not quite the same as a destructor, but __attribute__((cleanup)) might be useful for your use case.
by saagarjha 7y ago
It’s a GNU extension, and not quite the same as a destructor, but __attribute__((cleanup)) might be useful for your use case.