task_database: fix memory leak in error path
This commit is contained in:
parent
770640be58
commit
edf90d250f
|
@ -415,8 +415,7 @@ int find_first_data_track(const char *cue_path,
|
|||
fd = intfstream_init(&info);
|
||||
if (!fd)
|
||||
{
|
||||
free(tmp_token);
|
||||
return -errno;
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (!intfstream_open(fd, cue_path, RFILE_MODE_READ, -1))
|
||||
|
|
Loading…
Reference in New Issue