Skip to content

Commit

Permalink
* FIX [webhook_inproc] fix wild piont
Browse files Browse the repository at this point in the history
Signed-off-by: wayne <yukang.wei@emqx.io>
  • Loading branch information
StargazerWayne authored and JaylinYu committed Mar 29, 2024
1 parent bfe99d6 commit 8988d41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nanomq/webhook_inproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,8 @@ hook_cb(void *arg)
rv = nng_pull0_open(&sock);
if (rv != 0) {
log_error("nng_pull0_open %d", rv);
goto out;
nng_free(works, works_num * sizeof(struct hook_work *));
return;
}

for (i = 0; i < works_num; i++) {
Expand Down

0 comments on commit 8988d41

Please sign in to comment.