From 76651d96685c25a5dad1edadc6067a145da1d056 Mon Sep 17 00:00:00 2001 From: bug1 Date: Sat, 22 Sep 2001 03:24:07 +0000 Subject: Dont free everytime getline() is used, fix from Stefan Soucek git-svn-id: svn://busybox.net/trunk/busybox@3430 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- dpkg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dpkg.c') diff --git a/dpkg.c b/dpkg.c index 437b50d3b..a97a5a29f 100644 --- a/dpkg.c +++ b/dpkg.c @@ -1042,11 +1042,10 @@ char **create_list(const char *filename) *last_char = '\0'; } file_list[count] = xstrdup(line); - free(line); count++; - length = 0; } fclose(list_stream); + free(line); if (count == 0) { return(NULL); -- cgit v1.2.3-55-g6feb