Fixed memory leaks in softlist (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2011-01-15 14:00:59 +00:00
parent 25f1101204
commit b929a58a47

View File

@ -831,6 +831,7 @@ const char *software_get_clone(char *swlist, const char *swname)
if (software_list_ptr) if (software_list_ptr)
{ {
software_info *tmp = software_list_find(software_list_ptr, swname, NULL); software_info *tmp = software_list_find(software_list_ptr, swname, NULL);
software_list_close(software_list_ptr);
return tmp->parentname; return tmp->parentname;
} }
@ -850,6 +851,7 @@ UINT32 software_get_support(char *swlist, const char *swname)
if (software_list_ptr) if (software_list_ptr)
{ {
software_info *tmp = software_list_find(software_list_ptr, swname, NULL); software_info *tmp = software_list_find(software_list_ptr, swname, NULL);
software_list_close(software_list_ptr);
return tmp->supported; return tmp->supported;
} }