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:
Peng 2013-09-04 16:00:15 +08:00 committed by Marcelo Roberto Jimenez
parent 1a8a8228e4
commit 0c92ca4014
2 changed files with 6 additions and 1 deletions

View File

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

View File

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