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
4d796458
Commit
4d796458
authored
Oct 28, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Oct 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Avoid memory leaks (coverity).
parent
a46bfd64
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
install.c
dlls/setupapi/install.c
+1
-0
queue.c
dlls/setupapi/queue.c
+5
-1
No files found.
dlls/setupapi/install.c
View file @
4d796458
...
@@ -1640,6 +1640,7 @@ BOOL WINAPI SetupGetInfFileListW(PCWSTR dir, DWORD style, PWSTR buffer,
...
@@ -1640,6 +1640,7 @@ BOOL WINAPI SetupGetInfFileListW(PCWSTR dir, DWORD style, PWSTR buffer,
(
2
+
dir_len
+
name_len
)
*
sizeof
(
WCHAR
));
(
2
+
dir_len
+
name_len
)
*
sizeof
(
WCHAR
));
if
(
!
fullname
)
if
(
!
fullname
)
{
{
FindClose
(
hdl
);
HeapFree
(
GetProcessHeap
(),
0
,
filter
);
HeapFree
(
GetProcessHeap
(),
0
,
filter
);
SetLastError
(
ERROR_NOT_ENOUGH_MEMORY
);
SetLastError
(
ERROR_NOT_ENOUGH_MEMORY
);
return
FALSE
;
return
FALSE
;
...
...
dlls/setupapi/queue.c
View file @
4d796458
...
@@ -1156,7 +1156,11 @@ BOOL WINAPI SetupInstallFileExW( HINF hinf, PINFCONTEXT inf_context, PCWSTR sour
...
@@ -1156,7 +1156,11 @@ BOOL WINAPI SetupInstallFileExW( HINF hinf, PINFCONTEXT inf_context, PCWSTR sour
SetLastError
(
ERROR_NOT_ENOUGH_MEMORY
);
SetLastError
(
ERROR_NOT_ENOUGH_MEMORY
);
return
FALSE
;
return
FALSE
;
}
}
if
(
!
SetupGetStringFieldW
(
inf_context
,
1
,
inf_source
,
len
,
NULL
))
return
FALSE
;
if
(
!
SetupGetStringFieldW
(
inf_context
,
1
,
inf_source
,
len
,
NULL
))
{
HeapFree
(
GetProcessHeap
(),
0
,
inf_source
);
return
FALSE
;
}
source
=
inf_source
;
source
=
inf_source
;
}
}
else
if
(
!
source
)
else
if
(
!
source
)
...
...
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