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
1 changed files with 1 additions and 2 deletions

View File

@ -415,8 +415,7 @@ int find_first_data_track(const char *cue_path,
fd = intfstream_init(&info); fd = intfstream_init(&info);
if (!fd) if (!fd)
{ {
free(tmp_token); goto error;
return -errno;
} }
if (!intfstream_open(fd, cue_path, RFILE_MODE_READ, -1)) if (!intfstream_open(fd, cue_path, RFILE_MODE_READ, -1))