Skip to content

Commit

Permalink
kernel: Delete cond attr
Browse files Browse the repository at this point in the history
May solve memory leaks in games that create/destroy these often
  • Loading branch information
raphaelthegreat authored Sep 8, 2024
1 parent 96f7a75 commit e3c2a91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/libraries/kernel/thread_management.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,7 @@ int PS4_SYSV_ABI scePthreadCondattrDestroy(ScePthreadCondattr* attr) {
int result = pthread_condattr_destroy(&(*attr)->cond_attr);

LOG_DEBUG(Kernel_Pthread, "scePthreadCondattrDestroy: result = {} ", result);
delete *attr;

switch (result) {
case 0:
Expand Down

0 comments on commit e3c2a91

Please sign in to comment.