Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
faa576f4
...
faa576f4617e4191f5eaa20451e619bfa616b9a0
authored
2002-08-13 13:36:07 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Free return value of mu_get_homedir().
1 parent
976c5aba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
mh/mh_init.c
mh/mh_init.c
View file @
faa576f
...
...
@@ -78,6 +78,7 @@ mh_init ()
mh_error
(
"low memory"
);
exit
(
1
);
}
free
(
p
);
}
else
if
(
strchr
(
current_folder
,
':'
)
==
NULL
)
{
...
...
@@ -122,6 +123,7 @@ mh_read_profile ()
if
(
!
home
)
abort
();
/* shouldn't happen */
asprintf
(
&
p
,
"%s/%s"
,
home
,
MH_USER_PROFILE
);
free
(
home
);
}
mh_read_context_file
(
p
,
&
profile_header
);
}
...
...
@@ -377,7 +379,10 @@ mh_audit_open (char *name, mailbox_t mbox)
if
(
strchr
(
namep
,
'/'
)
==
NULL
)
{
char
*
p
=
NULL
;
asprintf
(
&
p
,
"%s/Mail/%s"
,
mu_get_homedir
(),
namep
);
char
*
home
;
asprintf
(
&
p
,
"%s/Mail/%s"
,
home
=
mu_get_homedir
(),
namep
);
free
(
home
);
if
(
!
p
)
{
mh_error
(
"low memory"
);
...
...
Please
register
or
sign in
to post a comment