Fix possible memory leak
This commit is contained in:
@@ -2344,6 +2344,7 @@ g_get_open_fds(int min, int max)
|
|||||||
// Descriptor is open
|
// Descriptor is open
|
||||||
if (!list_add_item(result, i))
|
if (!list_add_item(result, i))
|
||||||
{
|
{
|
||||||
|
g_free(fds);
|
||||||
goto nomem;
|
goto nomem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user