From 9997c10b4e954b61bda7ceba5db9ffbb431810c9 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Tue, 6 Mar 2018 20:37:46 +0100 Subject: [PATCH] fixed a leaking file descriptor in extract_attachment_content() Signed-off-by: Janos SUTO --- src/extract.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extract.c b/src/extract.c index 69a8b481..cd0e3fee 100644 --- a/src/extract.c +++ b/src/extract.c @@ -308,8 +308,8 @@ void extract_attachment_content(struct session_data *sdata, struct parser_state memcpy(&(state->b_body[state->bodylen]), outbuf, n); state->bodylen += n; } - //printf("Output: %.*s\n", n, outbuf); } + close(link[0]); wait(NULL); return; }