task_database: fix memory leak in error path

This commit is contained in:
Brian Koropoff 2017-09-17 10:14:51 -07:00
parent 770640be58
commit edf90d250f

View File

@ -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))