From: Benno Schulenberg Date: Mon, 4 Jan 2016 09:44:35 +0000 (+0000) Subject: No longer freeing any existing functions -- they are defined only once. X-Git-Tag: v2.5.1~15 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7a08fa63f556b9ec92ee93b205481ea48283feee;p=nano.git No longer freeing any existing functions -- they are defined only once. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5529 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index a74c550d..763a5716 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-01-04 Benno Schulenberg + * src/global.c (shortcut_init): Nowadays the functions are defined + only once, so there is no longer any need to free existing ones. + 2016-01-04 Mike Frysinger * src/global.c (strtosc, strtomenu): Constify the input parameter. diff --git a/src/global.c b/src/global.c index 8839316a..4a41659a 100644 --- a/src/global.c +++ b/src/global.c @@ -663,12 +663,6 @@ void shortcut_init(void) #define IFSCHELP(help) "" #endif - while (allfuncs != NULL) { - subnfunc *f = allfuncs; - allfuncs = allfuncs->next; - free(f); - } - /* Start populating the different menus with functions. */ add_to_funcs(do_help_void, MMOST,