From: Russell Bryant Date: Sat, 23 Dec 2006 19:51:56 +0000 (+0000) Subject: Use the correct function to destroy an rwlock in the destructor for an ast_rwlock_t X-Git-Tag: 1.6.0-beta1~3^2~3652 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72f23795df4dd57f0e06117faec727a70c1c650c;p=thirdparty%2Fasterisk.git 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 --- diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h index 75ae4d37b9..c44929fa51 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