msi: Free version after using lpVer in msi_get_disk_file_version as lpVer points inside of version.

This commit is contained in:
Rob Shearman 2007-06-26 22:23:30 +01:00 committed by Alexandre Julliard
parent 9c6fac65d8
commit 023383afd3
1 changed files with 2 additions and 1 deletions

View File

@ -1987,7 +1987,6 @@ static LPWSTR msi_get_disk_file_version( LPCWSTR filename )
msi_free( version );
return NULL;
}
msi_free( version );
sprintfW( filever, name_fmt,
HIWORD(lpVer->dwFileVersionMS),
@ -1995,6 +1994,8 @@ static LPWSTR msi_get_disk_file_version( LPCWSTR filename )
HIWORD(lpVer->dwFileVersionLS),
LOWORD(lpVer->dwFileVersionLS));
msi_free( version );
return strdupW( filever );
}