Unverified Commit 917d3c92 authored by Shawn Webb's avatar Shawn Webb
Browse files

Delete sbuf on finish error

If sbuf_finish fails, we leak the sbuf. Don't.
Signed-off-by: Shawn Webb's avatarShawn Webb <shawn.webb@hardenedbsd.org>
parent b99b5d8f
......@@ -341,6 +341,7 @@ msg_to_str(pushover_ctx_t *ctx, pushover_message_t *msg, CURL *curl)
if (sb != NULL) {
if (sbuf_finish(sb)) {
return (NULL);
res = strdup(sbuf_data(sb));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment