Free the memory for the MD5 string.

This commit is contained in:
Klaas Freitag 2012-08-23 17:19:27 +03:00
parent 97a7e46595
commit e9cf546818

View file

@ -46,7 +46,9 @@ void csync_vio_file_stat_destroy(csync_vio_file_stat_t *file_stat) {
if (file_stat->fields == CSYNC_VIO_FILE_STAT_FIELDS_CHECKSUM) {
SAFE_FREE(file_stat->u.checksum);
}
if (file_stat->fields == CSYNC_VIO_FILE_STAT_FIELDS_MD5) {
SAFE_FREE(file_stat->md5);
}
SAFE_FREE(file_stat->name);
SAFE_FREE(file_stat);
}