Skip to content

Commit

Permalink
MT#60853 fix possible null dereference
Browse files Browse the repository at this point in the history
Change-Id: I9d6b96ed10bab0055aa217fd976335a2e0919b56
  • Loading branch information
rfuchs committed Sep 4, 2024
1 parent 08cdc65 commit 3e0b302
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recording-daemon/metafile.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ static void meta_free(void *ptr) {
g_clear_pointer(&mf->ssrc_hash, g_hash_table_destroy);
for (int i = 0; i < mf->streams->len; i++) {
stream_t *stream = g_ptr_array_index(mf->streams, i);
if (!stream)
continue;
stream_close(stream); // should be closed already
stream_free(stream);
}
Expand Down

0 comments on commit 3e0b302

Please sign in to comment.