Fix bug in DataSource.

This commit is contained in:
Vreixo Formoso 2008-01-03 00:18:59 +01:00
parent 5bf798d550
commit 42cd599d2d

View File

@ -127,7 +127,7 @@ void ds_free_data(IsoDataSource *src)
data = (struct file_data_src*)src->data;
/* close the file if needed */
if (data->fd != 1) {
if (data->fd != -1) {
close(data->fd);
}
free(data->path);