Commit c1635a1a authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

snmp: we close file after opening

parent 8e899552
......@@ -68,6 +68,7 @@ time_t wrsMemory_data_fill(void)
found++;
}
}
fclose(f);
if (found == MEMINFO_ENTRIES && mem_total > 0) { /* avoid div 0 */
wrsMemory_s.wrsMemoryTotal = (int) mem_total;
......
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