# | Line 18 | Line 18 | |
---|---|---|
18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
19 | */ | |
20 | ||
21 | + | #ifdef HAVE_CONFIG_H |
22 | + | #include "config.h" |
23 | + | #endif |
24 | + | |
25 | #include <statgrab.h> | |
26 | #include <string.h> | |
27 | #include <stdio.h> | |
# | Line 75 | Line 79 | void clear_stats() { | |
79 | ||
80 | for (i = 0; i < num_stats; i++) | |
81 | free(stats[i].name); | |
78 | – | free(stats); |
79 | – | stats = NULL; |
82 | num_stats = 0; | |
81 | – | alloc_stats = 0; |
83 | } | |
84 | ||
85 | /* Add a stat. The varargs make up the name, joined with dots; the name is |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |