Fixed memory leaks on strings

'clib_close' now calls '_clib_str_free', which frees all the allocated
strings in the string pool.