From 206d2da4566eb7a60215e7281a229f5da089a72b Mon Sep 17 00:00:00 2001 From: Michael Elkins Date: Tue, 18 Jun 2002 09:52:52 +0000 Subject: [PATCH] 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. --- init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.40.0