mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-04 15:50:10 +01:00
Fixed file resource-leak spotted by Martin Ettl (linux only)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
@@ -153,6 +153,8 @@ void PipeServer()
|
|||||||
if (toFifo == NULL)
|
if (toFifo == NULL)
|
||||||
{
|
{
|
||||||
perror("Unable to open fifo to server from script");
|
perror("Unable to open fifo to server from script");
|
||||||
|
if (fromFifo != NULL)
|
||||||
|
fclose(fromFifo);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user