Commit eba742e5 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

msi: Fix a memory leak in load_folder().

parent cf370a8d
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment