Skip to content

Commit

Permalink
sp: stream: fix leak on exception (CID 185611)
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Apr 8, 2019
1 parent de89dc7 commit b998982
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stream_processor/flb_sp_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ int flb_sp_stream_create(char *name, struct flb_sp_task *task,
}
stream->name = flb_sds_create(name);
if (!stream->name) {
flb_free(stream);
return -1;
}

Expand Down

0 comments on commit b998982

Please sign in to comment.