A few minor defects in sendlib.c. Each patch attempts to address a different kind of defect. 1. tempfile is a double pointer. So when checking it we have to check it and its dereferenced pointer. 2. Fix a few resource leaks. Almost all occur in error paths. 3. q is never used. 4. childout should not be passed to unlink unless it is valid. Thanks E 1 file changed, 21 insertions(+), 19 deletions(-) sendlib.c | 40 +++++++++++++++++++++-------------------