]> diplodocus.org Git - nmh/commitdiff
Call c_ceclosefnx in mhfixmsg set_ce(). It doesn't seem to help
authorDavid Levine <levinedl@acm.org>
Wed, 5 Oct 2016 20:04:11 +0000 (16:04 -0400)
committerDavid Levine <levinedl@acm.org>
Wed, 5 Oct 2016 20:04:11 +0000 (16:04 -0400)
reduce file descriptor leaks, but can't hurt.

uip/mhfixmsg.c

index b7025514d595a2b1e261beaed6f692278b924d78..61b3b8b38885f5604d0c34e341f9c968222e29b9 100644 (file)
@@ -1160,6 +1160,10 @@ set_ce (CT ct, int encoding) {
            ct->c_cefile.ce_file to the name of the file containing
            the contents. */
 
            ct->c_cefile.ce_file to the name of the file containing
            the contents. */
 
+        if (ct->c_ceclosefnx) {
+            (*ct->c_ceclosefnx) (ct);
+        }
+
         /* Restore the cefile. */
         ct->c_cefile = decoded_content_info;
 
         /* Restore the cefile. */
         ct->c_cefile = decoded_content_info;