aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-junk-filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-junk-filter.c')
-rw-r--r--mail/em-junk-filter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/em-junk-filter.c b/mail/em-junk-filter.c
index ef5578e555..a5d04e17ce 100644
--- a/mail/em-junk-filter.c
+++ b/mail/em-junk-filter.c
@@ -168,12 +168,13 @@ pipe_to_sa_with_error (CamelMimeMessage *msg, const char *in, char **argv, int r
camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (msg), stream);
camel_stream_flush (stream);
+ camel_stream_close (stream);
camel_object_unref (stream);
} else if (in) {
camel_write (fds[1], in, strlen (in));
- close (fds[1]);
}
+ close (fds[1]);
result = waitpid (pid, &status, 0);
if (result == -1 && errno == EINTR) {