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
e034ba1b
Commit
e034ba1b
authored
May 28, 2018
by
Józef Kucia
Committed by
Alexandre Julliard
May 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
odbccp32: Fix memory leak in SQLGetInstalledDrivers() (Coverity).
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7d99d745
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
odbccp32.c
dlls/odbccp32/odbccp32.c
+3
-0
No files found.
dlls/odbccp32/odbccp32.c
View file @
e034ba1b
...
@@ -572,7 +572,10 @@ BOOL WINAPI SQLGetInstalledDrivers(char *buf, WORD size, WORD *sizeout)
...
@@ -572,7 +572,10 @@ BOOL WINAPI SQLGetInstalledDrivers(char *buf, WORD size, WORD *sizeout)
ret
=
SQLGetInstalledDriversW
(
wbuf
,
size
,
&
written
);
ret
=
SQLGetInstalledDriversW
(
wbuf
,
size
,
&
written
);
if
(
!
ret
)
if
(
!
ret
)
{
heap_free
(
wbuf
);
return
FALSE
;
return
FALSE
;
}
*
sizeout
=
WideCharToMultiByte
(
CP_ACP
,
0
,
wbuf
,
written
,
NULL
,
0
,
NULL
,
NULL
);
*
sizeout
=
WideCharToMultiByte
(
CP_ACP
,
0
,
wbuf
,
written
,
NULL
,
0
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
wbuf
,
written
,
buf
,
size
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
wbuf
,
written
,
buf
,
size
,
NULL
,
NULL
);
...
...
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