#3965: mutt-1.9.0/mutt_ssl_gnutls.c:650]: (error) Resource leak: fp
--------------------+----------------------
 Reporter:  dcb314  |      Owner:  mutt-dev
     Type:  defect  |     Status:  new
 Priority:  minor   |  Milestone:
Component:  mutt    |    Version:  1.9.0
 Keywords:          |
--------------------+----------------------
 Source code is

   if ((fp = fopen (SslCertFile, "r")))
   {
     if (REGCOMP(&preg, "^#H ([a-zA-Z0-9_\\.-]+) ([0-9A-F]{4}(
 [0-9A-F]{4}){7})[ \t]*$",
                 REG_ICASE) != 0)
     {
        return 0;
     }

 Other paths through the code have calls to

       safe_fclose (&fp);

 Maybe such a call is needed here ?

--
Ticket URL: <https://dev.mutt.org/trac/ticket/3965>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to