The pointer is to be managed outside the function and provided.
Only close it we opened it ourself using fopen().
+2009-04-06 19:07 +0200 Erik Hovland <erik@hovland.org> (b5cbd0dab863)
+
+ * sendlib.c: Plug memory leaks in sendlib.c
+
2009-04-05 13:41 +0200 Rocco Rutte <pdmef@gmx.net> (5d393e716c51)
* ChangeLog, init.h, sendlib.c: Backed out changeset 23c7b469ff20
cleanup:
FREE (&line);
- if (fpin && !fp)
+ if (fpin && fpin != fp)
safe_fclose (&fpin);
if (fpout)
safe_fclose (&fpout);