View | Details | Raw Unified | Return to bug 142454
Collapse All | Expand All

(-)ftpfs.c (-4 / +6 lines)
Lines 611-620 static void free_ftpfs_file(struct ftpfs Link Here
611
    curl_easy_cleanup(fh->write_conn);
611
    curl_easy_cleanup(fh->write_conn);
612
  g_free(fh->full_path);
612
  g_free(fh->full_path);
613
  g_free(fh->open_path);
613
  g_free(fh->open_path);
614
  sem_destroy(&fh->data_avail);
614
  if (fh->data_avail) {
615
  sem_destroy(&fh->data_need);
615
    sem_destroy(&fh->data_avail);
616
  sem_destroy(&fh->data_written);
616
    sem_destroy(&fh->data_need);
617
  sem_destroy(&fh->ready);
617
    sem_destroy(&fh->data_written);
618
    sem_destroy(&fh->ready);
619
  }
618
  free(fh);
620
  free(fh);
619
}
621
}

Return to bug 142454