Imported Upstream version 2.5.2p1
[debian/amanda] / server-src / disk_history.c
index 1e02f74225a8a575aa62d15fdd71b6f275ed34cd..4d26969381caaa756fb2e238e9570c10ce2f9290 100644 (file)
@@ -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 */