Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
082e0bfe
Commit
082e0bfe
authored
Oct 01, 2003
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 01, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix missing mem freeing on error path.
parent
4ff35b52
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
crypt.c
dlls/advapi32/crypt.c
+3
-1
printdlg16.c
dlls/commdlg/printdlg16.c
+1
-0
clipboard.c
dlls/ole32/clipboard.c
+3
-1
filemoniker.c
dlls/ole32/filemoniker.c
+3
-1
No files found.
dlls/advapi32/crypt.c
View file @
082e0bfe
...
...
@@ -758,8 +758,10 @@ BOOL WINAPI CryptEnumProviderTypesA (DWORD dwIndex, DWORD *pdwReserved,
keylen
++
;
if
(
!
(
keyname
=
CRYPT_Alloc
(
keylen
))
)
CRYPT_ReturnLastError
(
ERROR_NOT_ENOUGH_MEMORY
);
if
(
RegEnumKeyA
(
hKey
,
dwIndex
,
keyname
,
keylen
)
)
if
(
RegEnumKeyA
(
hKey
,
dwIndex
,
keyname
,
keylen
)
)
{
CRYPT_Free
(
keyname
);
return
FALSE
;
}
RegOpenKeyA
(
hKey
,
keyname
,
&
hSubkey
);
ch
=
keyname
+
strlen
(
keyname
);
/* Convert "Type 000" to 0, etc/ */
...
...
dlls/commdlg/printdlg16.c
View file @
082e0bfe
...
...
@@ -377,6 +377,7 @@ BOOL16 WINAPI PrintDlg16(
if
(
!
GetPrinterDriverA
(
hprn
,
NULL
,
3
,
(
LPBYTE
)
dbuf
,
needed
,
&
needed
))
{
ERR
(
"GetPrinterDriverA failed for %s, le %ld, fix your config!
\n
"
,
pbuf
->
pPrinterName
,
GetLastError
());
HeapFree
(
GetProcessHeap
(),
0
,
dbuf
);
COMDLG32_SetCommDlgExtendedError
(
PDERR_RETDEFFAILURE
);
return
FALSE
;
}
...
...
dlls/ole32/clipboard.c
View file @
082e0bfe
...
...
@@ -1582,8 +1582,10 @@ LPENUMFORMATETC OLEClipbrd_IEnumFORMATETC_Construct(UINT cfmt, const FORMATETC a
ef
->
posFmt
=
0
;
ef
->
countFmt
=
cfmt
;
if
(
FAILED
(
CoGetMalloc
(
MEMCTX_TASK
,
&
pIMalloc
)))
if
(
FAILED
(
CoGetMalloc
(
MEMCTX_TASK
,
&
pIMalloc
)))
{
HeapFree
(
GetProcessHeap
(),
0
,
ef
);
return
NULL
;
}
ef
->
pFmt
=
(
LPFORMATETC
)
IMalloc_Alloc
(
pIMalloc
,
size
);
IMalloc_Release
(
pIMalloc
);
...
...
dlls/ole32/filemoniker.c
View file @
082e0bfe
...
...
@@ -323,8 +323,10 @@ HRESULT WINAPI FileMonikerImpl_Load(IMoniker* iface,IStream* pStm)
filePathW
=
HeapAlloc
(
GetProcessHeap
(),
0
,(
length
+
1
)
*
sizeof
(
WCHAR
));
filePathW
[
length
]
=
0
;
res
=
IStream_Read
(
pStm
,
filePathW
,
doubleLenHex
,
&
bread
);
if
(
bread
!=
doubleLenHex
)
if
(
bread
!=
doubleLenHex
)
{
HeapFree
(
GetProcessHeap
(),
0
,
filePathW
);
return
E_FAIL
;
}
if
(
This
->
filePathName
!=
NULL
)
HeapFree
(
GetProcessHeap
(),
0
,
This
->
filePathName
);
...
...
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