[Live-devel] Possible memory leak in UserAuthenticationDatabase
Jeff Shanab
jshanab at jfs-tech.com
Fri Nov 8 05:41:23 PST 2019
In GenericMediaServer:
Is there a memory leak If I call AddUser with the same credentials more
than once ?
void UserAuthenticationDatabase::addUserRecord(char const* username,
char const* password) {
fTable->Add(username, (void*)(strDup(password)));
}
strDup is called each time, but the pointer is replaced if there is a match
on the key.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20191108/e55b197e/attachment.htm>
More information about the live-devel
mailing list