flintlib / calcium

Calcium has been merged into FLINT -- use https://github.com/flintlib/flint/ instead
http://fredrikj.net/calcium/
GNU Lesser General Public License v2.1
79 stars 11 forks source link

Fixed up memory leaking string functions #29

Closed deinst closed 3 years ago

deinst commented 3 years ago

Using the try-finally construction to do cleanup seems to be the standard way of freeing char * pointers. I have only tested this on my mac, so treat it with suspicion.

fredrik-johansson commented 3 years ago

Yes, this should do the trick. Thanks!