diff options
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); |