From 2061f0484753bb8de0fb9dd5821ee983ceda2e23 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 13 Nov 2006 15:19:22 +0100 Subject: Plug another technically-unimportant leak in sort. * src/sort.c (main): Don't allocate memory for each new key here. (insertkey): Allocate memory for each key here, instead. (key_init): Rename from new_key. Don't allocate. --- ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 33558767e..e737ee173 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2006-11-13 Jim Meyering + Plug another technically-unimportant leak in sort. + * src/sort.c (main): Don't allocate memory for each new key here. + (insertkey): Allocate memory for each key here, instead. + (key_init): Rename from new_key. Don't allocate. + * src/sort.c (main): Plug a tiny memory leak. Move declaration of local "minus" down to be nearer point of use. -- cgit v1.2.3-70-g09d2