Commit ed901571 authored by Mark Fasheh's avatar Mark Fasheh

util.c: don't leak fd in detect_ht()

We weren't closing /proc/cpuinfo in the case that the ht flag was seen.
Signed-off-by: 's avatarMark Fasheh <mfasheh@suse.de>
parent 8fb519f6
......@@ -238,8 +238,10 @@ static int detect_ht(void)
c = NULL;
}
// printf("\"flag: %s\"\n", flag);
if (!strcmp(flag, HT_FLAG))
return 1;
if (!strcmp(flag, HT_FLAG)) {
ret = 1;
goto out_close;
}
}
/* No 'ht' in flags? We're done. */
goto out_close;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment