X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Fdisk_history.c;h=4d26969381caaa756fb2e238e9570c10ce2f9290;hb=d3b2175e084f88c8736ad7073eacbf4670147aec;hp=1e02f74225a8a575aa62d15fdd71b6f275ed34cd;hpb=34197d9f46a5f4e944378cbb65fca32ee0eec7b9;p=debian%2Famanda diff --git a/server-src/disk_history.c b/server-src/disk_history.c index 1e02f74..4d26969 100644 --- a/server-src/disk_history.c +++ b/server-src/disk_history.c @@ -43,6 +43,7 @@ clear_list(void) { this = item; item = item->next; + amfree(this->hostname); while(this->tapes != NULL) { tapelist_t *tapes = this->tapes; this->tapes = tapes->next; @@ -59,6 +60,7 @@ clear_list(void) void add_dump( + char * hostname, char * date, int level, char * tape, @@ -78,6 +80,7 @@ add_dump( if(partnum == -1) new->is_split = 0; else new->is_split = 1; new->tapes = NULL; + new->hostname = stralloc(hostname); if(new->tape[0] == '/') isafile = 1; /* XXX kludgey, like this whole thing */