*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
- package->versions
- = (struct version_stats **)list_add((void **)package->versions,
- v);
+ tmp = (struct version_stats **)list_add((void **)package->versions,
+ v);
+ free((void **)package->versions);
+ package->versions = tmp;
static struct daily_download_total **add_total
(struct daily_download_total **totals, struct daily_download_total *total)
{
static struct daily_download_total **add_total
(struct daily_download_total **totals, struct daily_download_total *total)
{
item = malloc(sizeof(struct daily_download_total));
memcpy(item, total, sizeof(struct daily_download_total));
item = malloc(sizeof(struct daily_download_total));
memcpy(item, total, sizeof(struct daily_download_total));
}
struct daily_download_total **add_totals
(struct daily_download_total **total1, struct daily_download_total **total2)
{
}
struct daily_download_total **add_totals
(struct daily_download_total **total1, struct daily_download_total **total2)
{
char *ppa_url, *pkg_name, *pkg_version;
struct package_stats *pkg;
struct version_stats *version;
char *ppa_url, *pkg_name, *pkg_version;
struct package_stats *pkg;
struct version_stats *version;
struct daily_download_total **totals;
ppa_url = get_archive_url(owner, ppa_name);
struct daily_download_total **totals;
ppa_url = get_archive_url(owner, ppa_name);