Skip to content

Commit

Permalink
Fixed leak in recorder when adding descriptions (#3487)
Browse files Browse the repository at this point in the history
  • Loading branch information
m08pvv authored Dec 10, 2024
1 parent e296d1a commit 4419baf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/record.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ static void janus_recorder_free(const janus_refcount *recorder_ref) {
recorder->codec = NULL;
g_free(recorder->fmtp);
recorder->fmtp = NULL;
g_free(recorder->description);
recorder->description = NULL;
if(recorder->extensions != NULL)
g_hash_table_destroy(recorder->extensions);
janus_mutex_destroy(&recorder->mutex);
Expand Down

0 comments on commit 4419baf

Please sign in to comment.