]> Pileus Git - ~andy/fetchmail/commitdiff
Plug one of the .netrc memory leaks.
authorMatthias Andree <matthias.andree@gmx.de>
Sun, 3 Jul 2005 23:56:10 +0000 (23:56 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Sun, 3 Jul 2005 23:56:10 +0000 (23:56 -0000)
svn path=/trunk/; revision=4087

fetchmail.c

index 284c8cf3e8e5f2349d6c2f05f2bed4e961afd7e8..70de180f1cee45ed7e09d0e0af85d512a5680923 100644 (file)
@@ -303,6 +303,7 @@ int main(int argc, char **argv)
     /* parse the ~/.netrc file (if present) for future password lookups. */
     netrc_file = prependdir (NETRC_FILE, home);
     netrc_list = parse_netrc(netrc_file);
+    free(netrc_file);
 #undef NETRC_FILE
 
     /* pick up passwords where we can */