Skip to content

Commit

Permalink
proxy: do not leak dl handler on mem error
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Nov 7, 2016
1 parent 355eb06 commit ace7fbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/flb_plugin_proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ struct flb_plugin_proxy *flb_plugin_proxy_create(const char *dso_path, int type,
proxy = flb_malloc(sizeof(struct flb_plugin_proxy));
if (!proxy) {
flb_errno();
dlclose(handle);
return NULL;
}

Expand Down

0 comments on commit ace7fbf

Please sign in to comment.