Remove faulty free in GetDescDocumentAndURL.

temp_str, which points to part of description, should not be freed.
This commit is contained in:
Peng 2013-09-04 16:00:15 +08:00 committed by Marcelo Roberto Jimenez
parent 9a9c4e829e
commit f6a3102b48
2 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,12 @@
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

@ -1590,7 +1590,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);