Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
ffworker
Commits
38f421b3
Commit
38f421b3
authored
Nov 20, 2017
by
Julian Rother
Browse files
Fixed use after free in api error handling
parent
376edfcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
util/api.c
View file @
38f421b3
...
...
@@ -49,13 +49,13 @@ int ping_job(int id, char *state, char *status, ...)
curl_easy_setopt
(
curl
,
CURLOPT_URL
,
url
);
ret
=
curl_easy_perform
(
curl
);
free
(
p
);
free
(
url
);
curl_easy_cleanup
(
curl
);
if
(
ret
)
{
fprintf
(
stderr
,
"API call to
\"
%s
\"
failed: %s
\n
"
,
url
,
curl_easy_strerror
(
ret
));
free
(
url
);
return
-
1
;
}
else
return
0
;
free
(
url
);
return
0
;
}
Write
Preview
Supports
Markdown
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