better implementation of previous fix. if read_dataset() does not find a matching dataset, delete only current raw structure, not all loaded raw files.

This commit is contained in:
stefan schippers 2024-11-28 03:51:27 +01:00
parent 9c48617e4e
commit e2f19d8b7c
1 changed files with 3 additions and 1 deletions

View File

@ -837,7 +837,9 @@ static int read_dataset(FILE *fd, Raw **rawptr, const char *type)
/* no analysis was found: delete */
if(exit_status != 1) extra_rawfile(3, NULL, NULL, -1.0, -1.0);
if(exit_status != 1) {
free_rawfile(rawptr, 0);
}
read_dataset_done:
if(line) my_free(_ALLOC_ID_, &line);
if(lowerline) my_free(_ALLOC_ID_, &lowerline);