msi: Fix a memory leak in load_folder().
This commit is contained in:
parent
cf370a8d39
commit
eba742e5cd
|
@ -1527,16 +1527,16 @@ static MSIFOLDER *load_folder( MSIPACKAGE *package, LPCWSTR dir )
|
|||
|
||||
TRACE("Working to load %s\n",debugstr_w(dir));
|
||||
|
||||
row = MSI_QueryGetRecord(package->db, Query, dir);
|
||||
if (!row)
|
||||
return NULL;
|
||||
|
||||
folder = msi_alloc_zero( sizeof (MSIFOLDER) );
|
||||
if (!folder)
|
||||
return NULL;
|
||||
|
||||
folder->Directory = strdupW(dir);
|
||||
|
||||
row = MSI_QueryGetRecord(package->db, Query, dir);
|
||||
if (!row)
|
||||
return NULL;
|
||||
|
||||
p = msi_dup_record_field(row, 3);
|
||||
|
||||
/* split src and target dir */
|
||||
|
|
Loading…
Reference in New Issue