freeMem(f->assertionList); freeMem(f->resourceList);
gcRDFFile (RDFFile f){  RDFFile f1 = (RDFFile) f->db->pdata;  if (f->locked) return;    if (f == f1) {    f->db->pdata = f->next;  } else {    RDFFile prev = f1;    while (f1 != NULL) {      if (f1 == f) {	prev->next = f->next;	break;      }      prev = f1;      f1 = f1->next;    }  }  gcRDFFileInt(f);}