netrc: Fixed a memory leak in an OOM condition
ftp: fixed a memory leak on wildcard error path