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
87b33ccb
Commit
87b33ccb
authored
Dec 14, 2007
by
Lionel Debroux
Committed by
Alexandre Julliard
Dec 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Fix memory leak (found by Smatch).
parent
6ac68936
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
info.c
dlls/winspool.drv/info.c
+2
-2
No files found.
dlls/winspool.drv/info.c
View file @
87b33ccb
...
...
@@ -611,7 +611,7 @@ PRINTCAP_ParseEntry(const char *pent, BOOL isfirst) {
PRINTER_INFO_2A
pinfo2a
;
char
*
e
,
*
s
,
*
name
,
*
prettyname
,
*
devname
;
BOOL
ret
=
FALSE
,
set_default
=
FALSE
;
char
*
port
,
*
devline
,
*
env_default
;
char
*
port
=
NULL
,
*
devline
,
*
env_default
;
HKEY
hkeyPrinter
,
hkeyPrinters
,
hkey
;
while
(
isspace
(
*
pent
))
pent
++
;
...
...
@@ -723,8 +723,8 @@ PRINTCAP_ParseEntry(const char *pent, BOOL isfirst) {
if
(
isfirst
||
set_default
)
WINSPOOL_SetDefaultPrinter
(
devname
,
name
,
TRUE
);
HeapFree
(
GetProcessHeap
(),
0
,
port
);
end:
HeapFree
(
GetProcessHeap
(),
0
,
port
);
HeapFree
(
GetProcessHeap
(),
0
,
name
);
return
ret
;
}
...
...
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