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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 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,7 +62,8 @@ body_destroy (body_t *pbody, void *owner)
{
if
(
body
->
file
)
fclose
(
body
->
file
);
free
(
body
->
filename
);
if
(
body
->
filename
)
free
(
body
->
filename
);
stream_destroy
(
&
(
body
->
stream
),
body
);
}
*
pbody
=
NULL
;
...
...
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,13 +334,14 @@ 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
);
}
}
free
(
mud
->
umessages
);
if
(
mud
->
umessages
)
free
(
mud
->
umessages
);
mud
->
umessages
=
NULL
;
mud
->
messages_count
=
mud
->
umessages_count
=
0
;
mud
->
size
=
0
;
...
...
Please
register
or
sign in
to post a comment