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
2d218c92
Commit
2d218c92
authored
May 02, 2021
by
Sven Baars
Committed by
Alexandre Julliard
May 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix some memory leaks (Valgrind).
Signed-off-by:
Sven Baars
<
sbaars@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
40842007
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
env.c
dlls/ntdll/unix/env.c
+1
-1
file.c
dlls/ntdll/unix/file.c
+6
-1
No files found.
dlls/ntdll/unix/env.c
View file @
2d218c92
...
...
@@ -912,7 +912,7 @@ static void rebuild_argv(void)
*/
static
void
prepend_argv
(
const
char
**
args
,
int
count
)
{
char
**
new_argv
=
malloc
(
(
main_argc
+
count
)
*
sizeof
(
*
new_argv
)
)
;
char
**
new_argv
;
char
*
p
,
*
end
;
BOOL
write_strings
=
FALSE
;
int
i
,
total
=
0
,
new_argc
=
main_argc
+
count
-
1
;
...
...
dlls/ntdll/unix/file.c
View file @
2d218c92
...
...
@@ -3298,7 +3298,12 @@ static NTSTATUS nt_to_unix_file_name_no_root( const UNICODE_STRING *nameW, char
/* check if prefix exists (except for DOS drives to avoid extra stat calls) */
if
(
wcschr
(
prefix
,
'/'
))
return
STATUS_OBJECT_PATH_NOT_FOUND
;
if
(
wcschr
(
prefix
,
'/'
))
{
free
(
unix_name
);
return
STATUS_OBJECT_PATH_NOT_FOUND
;
}
if
(
prefix_len
!=
2
||
prefix
[
1
]
!=
':'
)
{
unix_name
[
pos
]
=
0
;
...
...
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