Fix bugs found by application verifier :

- Fix  active lock in freed memory in ha_archive (share mutex was not released prior to free())
- Do not attempt vio_fastsend or vio_keepalive on named pipes and shared memory.
This commit is contained in:
Vladislav Vaintroub 2011-05-14 18:42:07 +02:00
commit 5f267b47de
2 changed files with 7 additions and 1 deletions

View file

@ -357,6 +357,7 @@ ARCHIVE_SHARE *ha_archive::get_share(const char *table_name, int *rc)
{
*rc= my_errno ? my_errno : -1;
pthread_mutex_unlock(&archive_mutex);
pthread_mutex_destroy(&share->mutex);
my_free(share, MYF(0));
DBUG_RETURN(NULL);
}