diff options
author | Glenn L McGrath | 2001-09-22 03:24:07 +0000 |
---|---|---|
committer | Glenn L McGrath | 2001-09-22 03:24:07 +0000 |
commit | b8f5adb64f1a9af77c463eef7e31d80def13ef4b (patch) | |
tree | 8c2b6209182e2a32cb87613de20be3bbca9a65c3 /archival/dpkg.c | |
parent | 3be34309e3274cd6996e4257dd3df7307c8dee3d (diff) | |
download | busybox-b8f5adb64f1a9af77c463eef7e31d80def13ef4b.zip busybox-b8f5adb64f1a9af77c463eef7e31d80def13ef4b.tar.gz |
Dont free everytime getline() is used, fix from Stefan Soucek
Diffstat (limited to 'archival/dpkg.c')
-rw-r--r-- | archival/dpkg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c index 437b50d..a97a5a2 100644 --- a/archival/dpkg.c +++ b/archival/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); |