Fixed a couple of memory leaks detected by Valgrind.
[citadel.git] / webcit / messages.c
index edbc64ba05064128c1be8e7854034e5953b4d448..724dab8c55b522b6ea79e2f50333e6d13b56a94e 100644 (file)
@@ -101,7 +101,6 @@ void utf8ify_rfc822_string(char *buf) {
 
                ic = ctdl_iconv_open("UTF-8", charset);
                if (ic != (iconv_t)(-1) ) {
-                       obuf = malloc(1024);
                        obuflen = 1024;
                        obuf = (char *) malloc(obuflen);
                        osav = obuf;