projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8326f9
)
free previous value of password field from `freerdp_assistance_parse_file_buffer`
author
odednoam
<oded@no.am>
Sat, 7 Nov 2020 21:20:56 +0000
(23:20 +0200)
committer
akallabeth
<akallabeth@users.noreply.github.com>
Thu, 25 Feb 2021 08:51:41 +0000
(09:51 +0100)
(cherry picked from commit
73dd40275fca9d009bcb07d4a734af146578f414
)
libfreerdp/common/assistance.c
patch
|
blob
|
history
diff --git
a/libfreerdp/common/assistance.c
b/libfreerdp/common/assistance.c
index
925c272
..
f5b5d62
100644
(file)
--- a/
libfreerdp/common/assistance.c
+++ b/
libfreerdp/common/assistance.c
@@
-791,6
+791,7
@@
int freerdp_assistance_parse_file_buffer(rdpAssistanceFile* file, const char* bu
int status;
size_t length;
+ free(file->password);
file->password = _strdup(password);
p = strstr(buffer, "UPLOADINFO");
@@
-1175,7
+1176,6
@@
int freerdp_assistance_parse_file(rdpAssistanceFile* file, const char* name, con
}
free(file->filename);
- free(file->password);
file->filename = _strdup(name);
fp = fopen(name, "r");