Skip to content

Commit

Permalink
Free time delay context after we are done with it
Browse files Browse the repository at this point in the history
  • Loading branch information
julek-wolfssl committed Oct 7, 2022
1 parent 1df0b62 commit d124fa6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion udp_proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ static void clearEventList(void)
list = evCleanupList.next;
evCleanupList.ev = NULL;
evCleanupList.next = NULL;
for (next = list->next; list != NULL; list = next) {
for (; list != NULL; list = next) {
next = list->next;
free(list);
}
Expand Down Expand Up @@ -429,6 +429,7 @@ static void sendTimeDelayedPkt(evutil_socket_t fd, short flags, void* arg)

/* Add event to cleanup queue */
addEventToCleanupList(tctx->ev);
free(tctx);
}

/* msg callback, send along to peer or do manipulation */
Expand Down

0 comments on commit d124fa6

Please sign in to comment.