Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
88aeb475
Commit
88aeb475
authored
Nov 30, 2004
by
James Hawkins
Committed by
Alexandre Julliard
Nov 30, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a few memory leaks.
parent
8109cfd4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
0 deletions
+13
-0
crypt.c
dlls/advapi32/crypt.c
+1
-0
crypt.c
dlls/advapi32/tests/crypt.c
+8
-0
avifile.c
dlls/avifil32/avifile.c
+3
-0
imagelist.c
dlls/comctl32/imagelist.c
+1
-0
No files found.
dlls/advapi32/crypt.c
View file @
88aeb475
...
...
@@ -396,6 +396,7 @@ BOOL WINAPI CryptAcquireContextA (HCRYPTPROV *phProv, LPCSTR pszContainer,
if
(
r
!=
ERROR_SUCCESS
)
{
TRACE
(
"error %ld reading 'Signature'
\n
"
,
r
);
CRYPT_Free
(
signature
);
RegCloseKey
(
key
);
SetLastError
(
NTE_PROV_TYPE_ENTRY_BAD
);
goto
error
;
...
...
dlls/advapi32/tests/crypt.c
View file @
88aeb475
...
...
@@ -227,6 +227,8 @@ static void test_enum_providers(void)
ok
(
result
&&
!
strcmp
(
pszProvName
,
provider
),
"expected %s, got %s
\n
"
,
pszProvName
,
provider
);
ok
(
result
&&
cbName
==
providerLen
,
"expected %ld, got %ld
\n
"
,
cbName
,
providerLen
);
LocalFree
(
provider
);
}
static
BOOL
FindProvTypesRegVals
(
DWORD
dwIndex
,
DWORD
*
pdwProvType
,
LPSTR
*
pszTypeName
,
...
...
@@ -354,6 +356,8 @@ static void test_enum_provider_types()
if
(
pszTypeName
)
ok
(
!
strcmp
(
pszTypeName
,
typeName
),
"expected %s, got %s
\n
"
,
pszTypeName
,
typeName
);
ok
(
typeNameSize
==
cbTypeName
,
"expected %ld, got %ld
\n
"
,
cbTypeName
,
typeNameSize
);
LocalFree
(
typeName
);
}
static
BOOL
FindDfltProvRegVals
(
DWORD
dwProvType
,
DWORD
dwFlags
,
LPSTR
*
pszProvName
,
DWORD
*
pcbProvName
)
...
...
@@ -470,6 +474,8 @@ static void test_get_default_provider()
result
=
CryptGetDefaultProvider
(
provType
,
NULL
,
flags
,
provName
,
&
provNameSize
);
ok
(
result
&&
!
strcmp
(
pszProvName
,
provName
),
"expected %s, got %s
\n
"
,
pszProvName
,
provName
);
ok
(
result
&&
provNameSize
==
cbProvName
,
"expected %ld, got %ld
\n
"
,
cbProvName
,
provNameSize
);
LocalFree
(
provName
);
}
static
void
test_set_provider_ex
()
...
...
@@ -501,6 +507,8 @@ static void test_set_provider_ex()
result
=
CryptGetDefaultProvider
(
PROV_RSA_FULL
,
NULL
,
CRYPT_MACHINE_DEFAULT
,
pszProvName
,
&
cbProvName
);
ok
(
result
&&
!
strcmp
(
MS_DEF_PROV
,
pszProvName
),
"expected %s, got %s
\n
"
,
MS_DEF_PROV
,
pszProvName
);
ok
(
result
&&
cbProvName
==
(
strlen
(
MS_DEF_PROV
)
+
1
),
"expected %i, got %ld
\n
"
,
(
strlen
(
MS_DEF_PROV
)
+
1
),
cbProvName
);
LocalFree
(
pszProvName
);
}
START_TEST
(
crypt
)
...
...
dlls/avifil32/avifile.c
View file @
88aeb475
...
...
@@ -1802,7 +1802,10 @@ static HRESULT AVIFILE_LoadFile(IAVIFileImpl *This)
return
AVIERR_MEMORY
;
if
(
mmioRead
(
This
->
hmmio
,
(
HPSTR
)
str
,
ck
.
cksize
)
!=
ck
.
cksize
)
{
LocalFree
((
HLOCAL
)
str
);
return
AVIERR_FILEREAD
;
}
MultiByteToWideChar
(
CP_ACP
,
0
,
str
,
-
1
,
pStream
->
sInfo
.
szName
,
sizeof
(
pStream
->
sInfo
.
szName
)
/
sizeof
(
pStream
->
sInfo
.
szName
[
0
]));
...
...
dlls/comctl32/imagelist.c
View file @
88aeb475
...
...
@@ -2731,6 +2731,7 @@ _write_bitmap(HBITMAP hBitmap, LPSTREAM pstm, int cx, int cy)
failed:
ReleaseDC
(
0
,
xdc
);
LocalFree
((
HLOCAL
)
lpBitsOrg
);
LocalFree
((
HLOCAL
)
data
);
return
result
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment