Skip to content

Commit

Permalink
lib-mail: Fix memory leak in test-istream-attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Dec 23, 2016
1 parent c81ec7d commit aab5704
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib-mail/test-istream-attachment.c
Expand Up @@ -188,12 +188,14 @@ static int test_close_attachment_ostream(struct ostream *output, bool success,
}

static int
test_close_attachment_ostream_error(struct ostream *output ATTR_UNUSED,
test_close_attachment_ostream_error(struct ostream *output,
bool success, const char **error,
void *context ATTR_UNUSED)
{
if (success)
*error = "test output error";
o_stream_ignore_last_errors(output);
o_stream_destroy(&output);
return -1;
}

Expand Down

0 comments on commit aab5704

Please sign in to comment.