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
1cb4b8d7
...
1cb4b8d7631f3a7a675510ddf3332bc28ddc5d2d
authored
2010-08-26 12:42:04 +0300
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bugfix.
* mailbox/acl.c (expand_arg): Fix a memory leak.
1 parent
d66dc378
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
mailbox/acl.c
mailbox/acl.c
View file @
1cb4b8d
...
...
@@ -541,7 +541,10 @@ expand_arg (const char *cmdline, struct run_closure *rp, char **s)
addr
.
s_addr
=
htonl
(
addr
.
s_addr
);
mu_vartab_define
(
vtab
,
"address"
,
inet_ntoa
(
addr
),
0
);
if
(
mu_asprintf
(
&
p
,
"%hu"
,
ntohs
(
s_in
->
sin_port
))
==
0
)
mu_vartab_define
(
vtab
,
"port"
,
p
,
0
);
{
mu_vartab_define
(
vtab
,
"port"
,
p
,
0
);
free
(
p
);
}
}
break
;
...
...
Please
register
or
sign in
to post a comment