mips: Fix initialization: always close "/proc/cpuinfo"

This commit is contained in:
gxw 2020-03-06 14:35:57 +08:00 committed by Cosmin Truta
parent 6842c58adc
commit 6c6f7d105a

View File

@ -47,8 +47,10 @@ png_have_msa(png_structp png_ptr)
int val = strcmp(string, word);
if (val == 0)
if (val == 0) {
fclose(f);
return 1;
}
i = 0;
memset(word, 0, 10);