hi
habitually, i free when i do a malloc...
but i see sometime on the web some people who free pointer created without maloc
Code:
void checkIO()
{
struct conn *conn_ptr = conns;
while(conn_ptr != NULL) {
if(fdIsReadable(conn_ptr->fd))
doIO(conn_ptr);
conn_ptr = conn_ptr->next;
}
}
here some people will do after the while:
thanks