]> granicus.if.org Git - neomutt/commitdiff
The string used to store the commmand for a backtic expansion in the
authorMichael Elkins <me@sigpipe.org>
Tue, 18 Jun 2002 09:52:52 +0000 (09:52 +0000)
committerMichael Elkins <me@sigpipe.org>
Tue, 18 Jun 2002 09:52:52 +0000 (09:52 +0000)
muttrc was not free'd if the command failed for some reason.

init.c

diff --git a/init.c b/init.c
index 268c685c0b1434dd7bb637a53b4c2c0560410371..6e8f1958f35f8fd2e34c8d4ec24eae1788b25c05 100644 (file)
--- a/init.c
+++ b/init.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2000 Michael R. Elkins <me@cs.hmc.edu>
+ * Copyright (C) 1996-2002 Michael R. Elkins <me@mutt.org>
  * 
  *     This program is free software; you can redistribute it and/or modify
  *     it under the terms of the GNU General Public License as published by
@@ -223,6 +223,7 @@ int mutt_extract_token (BUFFER *dest, BUFFER *tok, int flags)
       if ((pid = mutt_create_filter (cmd, NULL, &fp, NULL)) < 0)
       {
        dprint (1, (debugfile, "mutt_get_token: unable to fork command: %s", cmd));
+       FREE (&cmd);
        return (-1);
       }
       FREE (&cmd);