msi: Free version after using lpVer in msi_get_disk_file_version as lpVer points inside of version.
This commit is contained in:
parent
9c6fac65d8
commit
023383afd3
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue