[utils,passphrase] fix dangling pointers

This commit is contained in:
akallabeth
2025-12-07 09:02:39 +01:00
parent 266bf0e153
commit 78c9779eb1

View File

@@ -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;