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
99a0c55a
Commit
99a0c55a
authored
Oct 28, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Oct 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Avoid memory leaks (coverity).
parent
b4b396a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
bindprot.c
dlls/urlmon/bindprot.c
+3
-0
uri.c
dlls/urlmon/uri.c
+6
-2
No files found.
dlls/urlmon/bindprot.c
View file @
99a0c55a
...
...
@@ -1149,7 +1149,10 @@ static HRESULT WINAPI BPInternetProtocolSink_Switch(IInternetProtocolSink *iface
task
=
heap_alloc
(
sizeof
(
switch_task_t
));
if
(
!
task
)
{
heap_free
(
data
);
return
E_OUTOFMEMORY
;
}
task
->
data
=
data
;
...
...
dlls/urlmon/uri.c
View file @
99a0c55a
...
...
@@ -5185,8 +5185,10 @@ static HRESULT WINAPI PersistStream_Load(IPersistStream *iface, IStream *pStm)
if
(
!
data
)
return
E_OUTOFMEMORY
;
hr
=
IStream_Read
(
pStm
,
&
data
->
unk1
,
size
-
sizeof
(
DWORD
)
-
2
,
NULL
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
{
heap_free
(
data
);
return
hr
;
}
if
(
size
<
sizeof
(
struct
persist_uri
))
{
heap_free
(
data
);
...
...
@@ -6356,8 +6358,10 @@ HRESULT WINAPI CreateIUriBuilder(IUri *pIUri, DWORD dwFlags, DWORD_PTR dwReserve
Uri
*
uri
;
if
((
uri
=
get_uri_obj
(
pIUri
)))
{
if
(
!
uri
->
create_flags
)
if
(
!
uri
->
create_flags
)
{
heap_free
(
ret
);
return
E_UNEXPECTED
;
}
IUri_AddRef
(
pIUri
);
ret
->
uri
=
uri
;
...
...
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