diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-09-22 03:24:07 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-09-22 03:24:07 +0000 |
commit | 76651d96685c25a5dad1edadc6067a145da1d056 (patch) | |
tree | 8c2b6209182e2a32cb87613de20be3bbca9a65c3 /dpkg.c | |
parent | 2a0aed53f9300449e2cee0f6ec7102686d15dd11 (diff) | |
download | busybox-w32-76651d96685c25a5dad1edadc6067a145da1d056.tar.gz busybox-w32-76651d96685c25a5dad1edadc6067a145da1d056.tar.bz2 busybox-w32-76651d96685c25a5dad1edadc6067a145da1d056.zip |
Dont free everytime getline() is used, fix from Stefan Soucek
git-svn-id: svn://busybox.net/trunk/busybox@3430 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'dpkg.c')
-rw-r--r-- | dpkg.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1042,11 +1042,10 @@ char **create_list(const char *filename) | |||
1042 | *last_char = '\0'; | 1042 | *last_char = '\0'; |
1043 | } | 1043 | } |
1044 | file_list[count] = xstrdup(line); | 1044 | file_list[count] = xstrdup(line); |
1045 | free(line); | ||
1046 | count++; | 1045 | count++; |
1047 | length = 0; | ||
1048 | } | 1046 | } |
1049 | fclose(list_stream); | 1047 | fclose(list_stream); |
1048 | free(line); | ||
1050 | 1049 | ||
1051 | if (count == 0) { | 1050 | if (count == 0) { |
1052 | return(NULL); | 1051 | return(NULL); |