Skip to content

Commit

Permalink
RDKB-57423: Observed errors when ran valgrind for rbusTestConsumer -a (
Browse files Browse the repository at this point in the history
…#228)

Reason for change: Fixed errors when ran valgrind for rbusTestConsumer -a
Test Procedure: run rbusTestConsumer with valgrind
Risks: None.

Signed-off-by: Deepthi C Shetty <[email protected]>
Co-authored-by: Karunakaran A <[email protected]>
  • Loading branch information
dshett549 and karuna2git committed Jan 6, 2025
1 parent 376d231 commit d83264d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rbus/rbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -3071,6 +3071,8 @@ rbusError_t rbus_close(rbusHandle_t handle)

componentName = handleInfo->componentName;
handleInfo->componentName=NULL;
ERROR_CHECK(pthread_mutex_destroy(&handleInfo->handle_eventSubsMutex));
ERROR_CHECK(pthread_mutex_destroy(&handleInfo->handle_subsMutex));
rbusHandleList_Remove(handleInfo);

if(rbusHandleList_IsEmpty())
Expand All @@ -3093,8 +3095,6 @@ rbusError_t rbus_close(rbusHandle_t handle)

_rbus_open_pre_initialize(false);
}
ERROR_CHECK(pthread_mutex_destroy(&handleInfo->handle_eventSubsMutex));
ERROR_CHECK(pthread_mutex_destroy(&handleInfo->handle_subsMutex));

UnlockMutex();

Expand Down

0 comments on commit d83264d

Please sign in to comment.