]> git.marmaro.de Git - mmh/blobdiff - uip/mhfree.c
don't try to malloc 0 bytes if an RFC2047 encoded block is empty
[mmh] / uip / mhfree.c
index c43c5e92421e4210b93602abd778b18ca5f9c770..abaeb2bd8ffe242d636628c38fd4ed99e641e91f 100644 (file)
@@ -15,8 +15,6 @@
 #include <h/mime.h>
 #include <h/mhparse.h>
 
-extern int errno;
-
 /*
  * prototypes
  */
@@ -103,6 +101,8 @@ free_content (CT ct)
        free (ct->c_id);
     if (ct->c_descr)
        free (ct->c_descr);
+    if (ct->c_dispo)
+       free (ct->c_dispo);
 
     if (ct->c_file) {
        if (ct->c_unlink)