Skip to content

Commit

Permalink
Fix memory leak in jitter_buffer_put if packet arrives *very* late
Browse files Browse the repository at this point in the history
  • Loading branch information
justinshannon committed Nov 29, 2020
1 parent 095fd36 commit 36e68e3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libspeexdsp/jitter.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,11 @@ EXPORT void jitter_buffer_put(JitterBuffer *jitter, const JitterBufferPacket *pa
else
jitter->arrival[i] = jitter->next_stop;
}


else
{
if (jitter->destroy)
jitter->destroy(packet->data);
}
}

/** Get one packet from the jitter buffer */
Expand Down

0 comments on commit 36e68e3

Please sign in to comment.