From 0bf591dae10f583a9f0edb3c648dcddec188a7b3 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 25 Apr 1997 19:42:38 +0000 Subject: [PATCH] (sort_args): Free the malloc'd memory. --- src/emacs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/emacs.c b/src/emacs.c index a8bd976e734..ed5f89160c3 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1319,6 +1319,10 @@ sort_args (argc, argv) } bcopy (new, argv, sizeof (char *) * argc); + + free (options); + free (new); + free (priority); } DEFUN ("kill-emacs", Fkill_emacs, Skill_emacs, 0, 1, "P", -- 2.39.5