only save useful att for bpph
[ppastats.git] / src / lp.c
index b8c24f1..9ba2eec 100644 (file)
--- a/src/lp.c
+++ b/src/lp.c
@@ -59,6 +59,7 @@ void bpph_free(struct bpph *b)
                free(b->binary_package_version);
                free(b->distro_arch_series_link);
                free(b->self_link);
+               free(b->status);
                free(b);
        }
 }
@@ -78,6 +79,8 @@ struct bpph *bpph_new(const char *binary_package_name,
        h->distro_arch_series_link = strdup(distro_arch_series_link);
        h->self_link = strdup(self_link);
        h->architecture_specific = architecture_specific;
+       h->status = NULL;
+       h->date_created.tm_isdst = -1;
 
        return h;
 }