From: Michael Elkins Date: Tue, 18 Jun 2002 09:52:52 +0000 (+0000) Subject: The string used to store the commmand for a backtic expansion in the X-Git-Tag: mutt-1-5-2-rel~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=206d2da4566eb7a60215e7281a229f5da089a72b;p=mutt The string used to store the commmand for a backtic expansion in the muttrc was not free'd if the command failed for some reason. --- diff --git a/init.c b/init.c index 268c685c..6e8f1958 100644 --- a/init.c +++ b/init.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1996-2000 Michael R. Elkins + * Copyright (C) 1996-2002 Michael R. Elkins * * 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);