Fixed memory leaks in indclient