[MDEV-26557] Improper locking bugs due to the unreleased locks before program eixt Created: 2021-09-07 Updated: 2021-09-07 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.6.4 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Ryan | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
All |
||
| Description |
|
Hi developers, in the below codes, the lock LOCK_thread_count could be not released before program's exit exit(1);. I think it is better to write pthread_mutex_unlock(&LOCK_thread_count); * before the *exit(1); for better resource management and code symmetry. Thanks! |
| Comments |