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
d7eacb96
...
d7eacb9613d76cf2f91f0278e445a10845bb43b0
authored
2000-11-10 04:57:15 +0000
by
Alain Magloire
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
forgot to free some memory .. bad.
1 parent
767a2c8e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
mailbox/auth.c
mailbox/body.c
mailbox/mbx_mbox.c
mailbox/auth.c
View file @
d7eacb9
...
...
@@ -82,6 +82,19 @@ ticket_get_owner (ticket_t ticket)
}
int
ticket_set_pop
(
ticket_t
ticket
,
int
(
*
_pop
)
__P
((
ticket_t
,
const
char
*
,
char
**
)),
void
*
owner
)
{
if
(
ticket
==
NULL
)
return
EINVAL
;
if
(
ticket
->
owner
!=
owner
)
return
EACCES
;
ticket
->
_pop
=
_pop
;
return
0
;
}
int
ticket_pop
(
ticket_t
ticket
,
const
char
*
challenge
,
char
**
parg
)
{
if
(
ticket
==
NULL
||
parg
==
NULL
)
...
...
mailbox/body.c
View file @
d7eacb9
...
...
@@ -62,6 +62,7 @@ body_destroy (body_t *pbody, void *owner)
{
if
(
body
->
file
)
fclose
(
body
->
file
);
if
(
body
->
filename
)
free
(
body
->
filename
);
stream_destroy
(
&
(
body
->
stream
),
body
);
}
...
...
mailbox/mbx_mbox.c
View file @
d7eacb9
...
...
@@ -239,7 +239,7 @@ mbox_destroy (mailbox_t mailbox)
for
(
i
=
0
;
i
<
mud
->
umessages_count
;
i
++
)
{
mbox_message_t
mum
=
mud
->
umessages
[
i
];
if
(
mum
==
NULL
)
if
(
mum
)
{
message_destroy
(
&
(
mum
->
message
),
mum
);
free
(
mum
);
...
...
@@ -334,12 +334,13 @@ mbox_close (mailbox_t mailbox)
{
mbox_message_t
mum
=
mud
->
umessages
[
i
];
/* Destroy the attach messages. */
if
(
mum
==
NULL
)
if
(
mum
)
{
message_destroy
(
&
(
mum
->
message
),
mum
);
free
(
mum
);
}
}
if
(
mud
->
umessages
)
free
(
mud
->
umessages
);
mud
->
umessages
=
NULL
;
mud
->
messages_count
=
mud
->
umessages_count
=
0
;
...
...
Please
register
or
sign in
to post a comment