Skip to content

Commit

Permalink
MT#60258 prevent possible null dereference
Browse files Browse the repository at this point in the history
Change-Id: I8e661067d83c3a292f2ec43cd7fd129d8e3f01a7
(cherry picked from commit bee6275)
  • Loading branch information
rfuchs committed Jun 7, 2024
1 parent baee6ec commit 7207d9d
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 @@ -52,6 +52,8 @@ static void meta_destroy(metafile_t *mf) {
// close all streams
for (int i = 0; i < mf->streams->len; i++) {
stream_t *stream = g_ptr_array_index(mf->streams, i);
if (!stream)
continue;
pthread_mutex_lock(&stream->lock);
stream_close(stream);
pthread_mutex_unlock(&stream->lock);
Expand Down

0 comments on commit 7207d9d

Please sign in to comment.