Remove faulty free in GetDescDocumentAndURL.
temp_str, which points to part of description, should not be freed.
(cherry picked from commit f6a3102b48
)
This commit is contained in:
parent
1a8a8228e4
commit
0c92ca4014
@ -357,6 +357,12 @@ Version 1.8.0
|
||||
Version 1.6.19
|
||||
*******************************************************************************
|
||||
|
||||
2013-09-03 Peng <howtofly(at)gmail.com>
|
||||
|
||||
Remove faulty free in GetDescDocumentAndURL.
|
||||
|
||||
temp_str, which points to part of description, should not be freed.
|
||||
|
||||
2013-09-02 Peng <howtofly(at)gmail.com>
|
||||
|
||||
Suppose the UPnP device is listening on 192.168.1.102:49152. Use the following to send
|
||||
|
@ -1623,7 +1623,6 @@ static int GetDescDocumentAndURL(
|
||||
}
|
||||
if (strlen(temp_str) > (LINE_SIZE - 1)) {
|
||||
ixmlDocument_free(*xmlDoc);
|
||||
free(temp_str);
|
||||
return UPNP_E_URL_TOO_BIG;
|
||||
}
|
||||
strncpy(aliasStr, temp_str, sizeof(aliasStr) - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user