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
6be52478
...
6be5247830f394cf960565cbf1238297dd56e824
authored
2007-02-23 11:48:21 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(action_list): Call mu_dbm_datum_free
1 parent
76e19538
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
pop3d/popauth.c
pop3d/popauth.c
View file @
6be5247
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001, 2002, 2005 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001, 2002, 2005
, 2007
Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -308,11 +308,14 @@ action_list (struct action_data *ap)
mu_error
(
_
(
"No such user: %s"
),
ap
->
username
);
}
else
fprintf
(
fp
,
"%.*s: %.*s
\n
"
,
(
int
)
MU_DATUM_SIZE
(
key
),
(
char
*
)
MU_DATUM_PTR
(
key
),
(
int
)
MU_DATUM_SIZE
(
contents
),
(
char
*
)
MU_DATUM_PTR
(
contents
));
{
fprintf
(
fp
,
"%.*s: %.*s
\n
"
,
(
int
)
MU_DATUM_SIZE
(
key
),
(
char
*
)
MU_DATUM_PTR
(
key
),
(
int
)
MU_DATUM_SIZE
(
contents
),
(
char
*
)
MU_DATUM_PTR
(
contents
));
mu_dbm_datum_free
(
&
contents
);
}
}
else
{
...
...
@@ -326,6 +329,7 @@ action_list (struct action_data *ap)
(
char
*
)
MU_DATUM_PTR
(
key
),
(
int
)
MU_DATUM_SIZE
(
contents
),
(
char
*
)
MU_DATUM_PTR
(
contents
));
mu_dbm_datum_free
(
&
contents
);
}
}
...
...
@@ -565,6 +569,7 @@ action_chpass (struct action_data *ap)
fill_pass
(
ap
);
mu_dbm_datum_free
(
&
contents
);
MU_DATUM_PTR
(
contents
)
=
ap
->
passwd
;
MU_DATUM_SIZE
(
contents
)
=
strlen
(
ap
->
passwd
);
rc
=
mu_dbm_insert
(
db
,
key
,
contents
,
1
);
...
...
Please
register
or
sign in
to post a comment