Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
1898c001
Commit
1898c001
authored
May 09, 2019
by
Poul-Henning Kamp
Committed by
Dridi Boukelmoune
May 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Coverity doesnt know that getaddrinfo only allocates res on success.
parent
5852ed5c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vss.c
lib/libvarnish/vss.c
+1
-1
No files found.
lib/libvarnish/vss.c
View file @
1898c001
...
...
@@ -189,7 +189,7 @@ VSS_ResolveOne(void *dst, const char *addr, const char *port,
retval
=
VSA_Malloc
(
res
->
ai_addr
,
res
->
ai_addrlen
);
else
retval
=
VSA_Build
(
dst
,
res
->
ai_addr
,
res
->
ai_addrlen
);
freeaddrinfo
(
res
);
}
freeaddrinfo
(
res
);
return
(
retval
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment