Skip to content
Snippets Groups Projects
Commit 32391a53 authored by Simon McVittie's avatar Simon McVittie
Browse files

inspect-library: Reuse a buffer between iterations


There's no point in freeing the buffer every time: getline() is
designed to reuse it.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 7049fbf7
No related branches found
No related tags found
2 merge requests!21inspect-library: Add support for consuming deb-symbols(5) files,!20inspect-library: various fixes
......@@ -230,9 +230,6 @@ main (int argc,
free (merged_string);
}
}
free (line);
line = NULL;
len = 0;
}
}
free (line);
......
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