Memory management

Improves memory management in chula_strerror_r()
Fixes tiny memory leak in the test