commit | 6c6f7d105abaf413cf78e2fe4ea0c0c427f0d931 | [log] [tgz] |
---|---|---|
author | gxw <guxiwei-hf@loongson.cn> | Fri Mar 06 14:35:57 2020 +0800 |
committer | Cosmin Truta <ctruta@gmail.com> | Sun May 17 20:26:28 2020 -0400 |
tree | 4843bdcb0d1390d9ddd47c79a8da53a2ddb532c9 | |
parent | 6842c58adc2c882242a39b46fc45c50b32e1921f [diff] |
mips: Fix initialization: always close "/proc/cpuinfo"
diff --git a/contrib/mips-msa/linux.c b/contrib/mips-msa/linux.c index 140215c..60ad1ef 100644 --- a/contrib/mips-msa/linux.c +++ b/contrib/mips-msa/linux.c
@@ -47,8 +47,10 @@ int val = strcmp(string, word); - if (val == 0) + if (val == 0) { + fclose(f); return 1; + } i = 0; memset(word, 0, 10);