mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-15 08:45:54 -04:00
Clean up old allocations in pipe.c before allocating
This commit is contained in:
parent
6062ca014b
commit
16756a6632
@ -65,6 +65,8 @@ pipe_setup(struct media_file_info *mfi)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pipe_cleanup();
|
||||||
|
|
||||||
g_fd = open(mfi->path, O_RDONLY);
|
g_fd = open(mfi->path, O_RDONLY);
|
||||||
if (g_fd < 0)
|
if (g_fd < 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user