David Bremner <[email protected]> writes:

> David Bremner <[email protected]> writes:
>> +GMimeStream *
>> +g_mime_stream_stdout_new()
>> +{
>> +    GMimeStream *stream_stdout = NULL;
>> +
>> +    stream_stdout = g_mime_stream_pipe_new (STDOUT_FILENO);
>> +    if (!stream_stdout)
>> +    return NULL;
>> +
>> +    g_mime_stream_pipe_set_owner (GMIME_STREAM_PIPE (stream_stdout), FALSE);
>> +
>> +    return g_mime_stream_buffer_new (stream_stdout, 
>> GMIME_STREAM_BUFFER_BLOCK_WRITE);
>> +}
>
> speaking of memory leaks, I _think_ stream_stdout is leaking here,
> although I can't find it with valgrind.

Err. Now I see it, so that's another thing to clean up in this series.

d
_______________________________________________
notmuch mailing list
[email protected]
https://notmuchmail.org/mailman/listinfo/notmuch

Reply via email to