diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-12-23 19:51:56 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-12-23 19:51:56 +0000 |
commit | 72f23795df4dd57f0e06117faec727a70c1c650c (patch) | |
tree | 4bb27a9d75fd933a367bf104bca6055d50dd5fc1 | |
parent | 05d6c4a2d04d7f06b58a43967f396644ef4003b9 (diff) |
Use the correct function to destroy an rwlock in the destructor for an ast_rwlock_t
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48927 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | include/asterisk/lock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h index 75ae4d37b..c44929fa5 100644 --- a/include/asterisk/lock.h +++ b/include/asterisk/lock.h @@ -672,7 +672,7 @@ static void __attribute__ ((constructor)) init_##rwlock(void) \ } \ static void __attribute__ ((destructor)) fini_##rwlock(void) \ { \ - ast_mutex_destroy(&rwlock); \ + ast_rwlock_destroy(&rwlock); \ } #else #define AST_RWLOCK_INIT_VALUE PTHREAD_RWLOCK_INITIALIZER |