#3894: pgpewrap leaks memory
------------------------+---------------------
Reporter: drobertson | Owner: brendan
Type: defect | Status: new
Priority: minor | Milestone:
Component: IMAP | Version:
Keywords: |
------------------------+---------------------
{{{pgpewrap}}} leaks memory if {{{execvep}}} fails. If {{{argv[1]}}} is
not a valid command {{{free}}} is not called.
{{{
valgrind --leak-check=yes ./pgpewrap <something not valid>
}}}
Normally I'd say leaking memory is a big deal, but this only occurs with
invalid input. It is also probably a good idea to add some sort of error
checking. {{{"./pgpewrap: No such file or directory"}}} isn't the most
helpful text for an inexperienced user.
Comments or critiques are always appreciated. I just happened to stumble
upon this. Please let me know if this is not the typical way bug reports
and fixes are submitted.
--
Ticket URL: <https://dev.mutt.org/trac/ticket/3894>
Mutt <http://www.mutt.org/>
The Mutt mail user agent