Fixed a potential memory leak in C sting_join