Skip to content

Commit

Permalink
remove UB destroying locked mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
dexgs committed Feb 12, 2023
1 parent f05d678 commit b7a5c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/published_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,9 +625,9 @@ void remove_stream_from_map(
pthread_mutex_destroy(&data->num_subscribers_lock);
pthread_mutex_destroy(&data->srt_subscribers_lock);
pthread_mutex_destroy(&data->web_subscribers_lock);
pthread_mutex_destroy(&data->access_lock);
free(data->name);
})

pthread_mutex_destroy(&data->access_lock);
free(data);
}

0 comments on commit b7a5c66

Please sign in to comment.