#include "build.h"
#include "util.h"
#include "strxcpyx.h"
+#include "fileio.h"
#define compare(a, b) (((a) > (b))? 1 : (((b) > (a))? -1 : 0))
#define svg(...) printf(__VA_ARGS__)
*out = unit_times;
return c;
fail:
- for (; c >= 0; c--)
- free(unit_times[c].name);
- free(unit_times);
+ if (unit_times) {
+ for (; c >= 0; c--)
+ free(unit_times[c].name);
+ free(unit_times);
+ }
return r;
}