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:
parent
9c48617e4e
commit
e2f19d8b7c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue