Skip to content
Snippets Groups Projects
Commit d1e57585 authored by Andreas Gampe's avatar Andreas Gampe Committed by android-build-merger
Browse files

Merge "fc_sort: Fix leaks" am: 7f4b2ad5 am: acbf2ad3

am: 274c4e33

Change-Id: Ic46f83ae348c57ad306748d03456e62c9a4600d4
parents 720cfe51 274c4e33
No related branches found
No related tags found
No related merge requests found
......@@ -350,6 +350,7 @@ int main(int argc, char *argv[])
/* Parse the file into a file_context linked list. */
line_buf = NULL;
buf_len = 0;
while ( getline(&line_buf, &buf_len, in_file) != -1 ){
line_len = strlen(line_buf);
......@@ -478,15 +479,13 @@ int main(int argc, char *argv[])
current->next = temp;
current = current->next;
lines++;
free(line_buf);
line_buf = NULL;
}
free(line_buf);
fclose(in_file);
/* Create the bucket linked list from the earlier linked list. */
current = head->next;
free(head);
bcurrent = master =
(file_context_bucket_t *)
malloc(sizeof(file_context_bucket_t));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment