Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f7679b45
Commit
f7679b45
authored
Apr 07, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Apr 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Fix a memory leak.
parent
ccdd0869
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
config.c
libs/wine/config.c
+9
-5
No files found.
libs/wine/config.c
View file @
f7679b45
...
...
@@ -117,7 +117,7 @@ static char *build_path( const char *dir, const char *name )
}
/* return the directory that contains the library at run-time */
static
c
onst
c
har
*
get_runtime_libdir
(
void
)
static
char
*
get_runtime_libdir
(
void
)
{
#ifdef HAVE_DLADDR
Dl_info
info
;
...
...
@@ -279,8 +279,8 @@ static char *running_from_build_dir( const char *basedir, const char *bindir )
void
wine_init_argv0_path
(
const
char
*
argv0
)
{
size_t
size
,
len
;
const
char
*
p
,
*
libdir
,
*
basename
;
char
*
cwd
;
const
char
*
p
,
*
basename
;
char
*
cwd
,
*
libdir
;
if
(
!
(
p
=
strrchr
(
argv0
,
'/'
)))
basename
=
argv0
;
...
...
@@ -292,10 +292,14 @@ void wine_init_argv0_path( const char *argv0 )
if
((
libdir
=
get_runtime_libdir
()))
{
bindir
=
build_path
(
libdir
,
LIB_TO_BINDIR
);
if
((
build_dir
=
running_from_build_dir
(
libdir
,
bindir
)))
goto
in_build_dir
;
if
((
build_dir
=
running_from_build_dir
(
libdir
,
bindir
)))
{
free
(
libdir
);
goto
in_build_dir
;
}
dlldir
=
build_path
(
libdir
,
LIB_TO_DLLDIR
);
datadir
=
build_path
(
libdir
,
LIB_TO_DATADIR
);
free
(
libdir
);
return
;
}
...
...
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