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
10e825b3
...
10e825b3a9ed4b8bdd7f579565ce117c455ea5ad
authored
2000-06-01 05:30:15 +0000
by
Alain Magloire
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
mbx_unix.c
mailbox_unix_expunge: forget to free tmpmbox filename.
1 parent
9c38b373
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
mailbox/mbx_unix.c
mailbox/mbx_unix.c
View file @
10e825b
...
...
@@ -999,7 +999,11 @@ mailbox_unix_tmpfile (mailbox_t mbox, char *tmpmbox)
}
fp
=
fdopen
(
fd
,
"w+"
);
if
(
fp
==
0
)
close
(
fd
);
{
close
(
fd
);
free
(
tmpmbox
);
tmpmbox
=
NULL
;
}
/* really I should just remove the file here */
/* remove(tmpmbox); */
...
...
@@ -1039,6 +1043,7 @@ mailbox_unix_expunge (mailbox_t mbox)
{
fclose
(
tmpfile
);
remove
(
tmpmbox
);
free
(
tmpmbox
);
return
ENOLCK
;
}
...
...
@@ -1298,6 +1303,7 @@ mailbox_unix_expunge (mailbox_t mbox)
remove
(
tmpmbox
);
bailout:
free
(
tmpmbox
);
/* Release the locks */
if
(
oflags
>
0
)
fcntl
(
fileno
(
mud
->
file
),
F_SETFL
,
oflags
);
...
...
Please
register
or
sign in
to post a comment