msi: Fix a memory leak in load_folder().

This commit is contained in:
Mike McCormack 2006-11-17 17:50:41 +09:00 committed by Alexandre Julliard
parent cf370a8d39
commit eba742e5cd
1 changed files with 4 additions and 4 deletions

View File

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