fixes/cleanups according to Coverity report

This commit is contained in:
unknown 2005-01-24 15:48:25 +01:00
commit 8bdb500105
29 changed files with 156 additions and 162 deletions

View file

@ -352,6 +352,7 @@ int init_key_cache(KEY_CACHE *keycache, uint key_cache_block_size,
MYF(0))))
break;
my_free_lock(keycache->block_mem, MYF(0));
keycache->block_mem= 0;
}
if (blocks < 8)
{

View file

@ -248,7 +248,7 @@ void thr_end_alarm(thr_alarm_t *alarmed)
if (alarm_data->malloced)
my_free((gptr) alarm_data,MYF(0));
found++;
#ifndef DBUG_OFF
#ifdef DBUG_OFF
break;
#endif
}