[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-mailutils] memory leak with mu_rfc2047_encode

From: Henrique Pantarotto
Subject: [bug-mailutils] memory leak with mu_rfc2047_encode
Date: Thu, 16 Feb 2017 15:15:17 +0000

Hello friends!

One of my programs is presenting large memory usage, and I traced it down to the mu_rfc2047_encode function that I'm using.

If you compile and run the program below, it will use all of your memory.

#include <stdio.h>
#include "mailutils/mailutils.h"

void main() {

  char *value;

  while(1) {
    mu_rfc2047_encode("utf-8", "quoted-printable", "Any subject", &value);
    printf("Result: %s\n", value);
    if (value)


I've tested this with the default "libmailutils-dev" (1:2.99.98-2) package from Debian 8.7, but I've also tested with mailutils-3.1.1.

Perhaps I'm not using this function properly?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]