Update ftplib.c

avoid memory leak;