Skip to content

Commit

Permalink
restserver: destroy rest context mutex on cleanup (eclipse-wakaama#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
GiedriusM authored Mar 21, 2018
1 parent 8be2a65 commit 7108eea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/rest-server/rest-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ void rest_cleanup(rest_context_t *rest)
rest_list_delete(rest->asyncResponseList);
rest_list_delete(rest->pendingResponseList);
rest_list_delete(rest->observeList);

assert(pthread_mutex_destroy(&rest->mutex) == 0);
}

int rest_step(rest_context_t *rest, struct timeval *tv)
Expand Down

0 comments on commit 7108eea

Please sign in to comment.