hwdb: drop useless line freeing

getline() takes care of extending the buffer as needed, so no point in
constantly freeing it before every call.
This commit is contained in:
Mike Frysinger
2012-01-02 22:45:19 +01:00
committed by Kay Sievers
parent a8e49f5913
commit d876eea1c4
-5
View File
@@ -101,11 +101,6 @@ static int lookup_vid_pid(const char *database,
for (;;) {
size_t n;
if (line) {
free(line);
line = NULL;
}
if (getline(&line, &n, f) < 0)
break;