mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 08:24:16 +09:00
[utils,passphrase] fix dangling pointers
This commit is contained in:
@@ -443,6 +443,8 @@ SSIZE_T freerdp_interruptible_get_line(rdpContext* context, char** plineptr, siz
|
||||
|
||||
if (!n)
|
||||
{
|
||||
free(ptr);
|
||||
*plineptr = NULL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -479,6 +481,7 @@ SSIZE_T freerdp_interruptible_get_line(rdpContext* context, char** plineptr, siz
|
||||
if (c == EOF)
|
||||
{
|
||||
free(ptr);
|
||||
*plineptr = NULL;
|
||||
return EOF;
|
||||
}
|
||||
*plineptr = ptr;
|
||||
|
||||
Reference in New Issue
Block a user