Don't free a NULL pointer at csync_vio_file_stat_destroy().

This commit is contained in:
Andreas Schneider 2008-04-23 11:47:32 +02:00
parent dc72b7397c
commit 40f21cc369

View file

@ -36,6 +36,9 @@ csync_vio_file_stat_t *csync_vio_file_stat_new(void) {
void csync_vio_file_stat_destroy(csync_vio_file_stat_t *file_stat) {
/* FIXME: free rest */
if (file_stat == NULL) {
return;
}
if (file_stat->fields == CSYNC_VIO_FILE_STAT_FIELDS_SYMLINK_NAME) {
SAFE_FREE(file_stat->symlink_name);