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 authored Oct 28, 2024
1 parent ebe4e39 commit 65d8c3d
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 @@ -3104,6 +3104,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 @@ -3126,8 +3128,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 65d8c3d

Please sign in to comment.