Skip to content

Commit

Permalink
common: Free payload memory also if extension header is in use
Browse files Browse the repository at this point in the history
Seems like these two buffers are always different, so it should be safe
to delete both.
  • Loading branch information
jrsnen committed Aug 26, 2024
1 parent a09196f commit 74249a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frame.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ rtp_error_t uvgrtp::frame::dealloc_frame(uvgrtp::frame::rtp_frame *frame)
delete frame->ext;
}

else if (frame->payload)
if (frame->payload)
delete[] frame->payload;

//UVG_LOG_DEBUG("Deallocating frame, type %u", frame->type);
Expand Down

0 comments on commit 74249a8

Please sign in to comment.