Skip to content

Commit

Permalink
Free pbuf on udp recv callback
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnlak committed Mar 26, 2023
1 parent b82232f commit a88ca75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions time.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ void time_ntp_response_cb( void *p_state, struct udp_pcb *p_socket,
l_ntptime[2] << 8 | l_ntptime[3];
}

/* Need to free the pbuf that we were passed. */
pbuf_free( p_buffer );

/* All done. */
return;
}
Expand Down

0 comments on commit a88ca75

Please sign in to comment.