From 5922de46dec881d59cc7ea2383c763538dedd87b Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Thu, 28 May 2009 15:03:19 +0200 Subject: [PATCH] msi: Don't duplicate the table name in CREATE_CreateView. The table name is tracked in the list attached to the parent query object, which is destroyed after the view object. This plugs a leak since the duplicated table name was never freed. --- dlls/msi/create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msi/create.c b/dlls/msi/create.c index 89d32886a91..63cd373dbdc 100644 --- a/dlls/msi/create.c +++ b/dlls/msi/create.c @@ -180,7 +180,7 @@ UINT CREATE_CreateView( MSIDATABASE *db, MSIVIEW **view, LPCWSTR table, for( col = col_info; col; col = col->next ) { if (!col->table) - col->table = strdupW(table); + col->table = table; if( !col->temporary ) temp = FALSE;