I've been playing around with MALLOC_STATS in an attempt to close up memory leaks on tba running on my OpenBSD box. I've gone through db.c and have been NULL'ing all the non NULL'd FREE's I could find since some dynamically allocated pointers were identified in the data.
GET_NAME(ch) is interesting, it is FREE'd but any attempt to set it to NULL result in the compiler complaining about on improper comparison statement. "lvalue required as left operand of assignment"
Is there something special about GET_NAME(ch) that I can't set it? Should I even trying setting GET_NAME(cha) or is there something fundamentally important that I'm missing that could result in disaster because I don't understand something?
Attachment 2015-09-13-193345_1175x957_scrot.png not found