import rt 3.8.8
[freeside.git] / rt / lib / RT / Interface / Web / Handler.pm
index 8d17921..6a06606 100644 (file)
@@ -217,6 +217,12 @@ sub CleanupRequest {
         RT::Crypt::GnuPG::UseKeyForEncryption();
         RT::Crypt::GnuPG::UseKeyForSigning( undef );
     }
+
+    %RT::Ticket::MERGE_CACHE = ( effective => {}, merged => {} );
+
+    # Explicitly remove any tmpfiles that GPG opened, and close their
+    # filehandles.
+    File::Temp::cleanup;
 }
 # }}}