cjlin1 / liblinear

LIBLINEAR -- A Library for Large Linear Classification
https://www.csie.ntu.edu.tw/~cjlin/liblinear/
BSD 3-Clause "New" or "Revised" License
1.01k stars 342 forks source link

Set pointers to NULL after memory is freed #84

Closed bloomen closed 1 year ago

bloomen commented 1 year ago

This makes the freeing code equivalent to how libsvm does it.

Note that free does not require a NULL check as it is a no-op if the given pointer is NULL.

cjlin1 commented 1 year ago

signed off on your behalf in our internal git repository. Will appear here in the next release soon. Thanks