RAGE: SLURPD malloc bug in st.c

This commit is contained in:
Kurt Zeilenga 1998-08-09 04:52:36 +00:00
parent 1596b380e9
commit 7b115db732

View File

@ -56,8 +56,7 @@ St_add(
pthread_mutex_unlock( &(st->st_mutex ));
return NULL;
}
st->st_data[ ind ] = ( Stel * ) ch_malloc( st->st_data,
sizeof( Stel ));
st->st_data[ ind ] = ( Stel * ) ch_malloc( sizeof( Stel ) );
if ( st->st_data[ ind ] == NULL ) {
pthread_mutex_unlock( &(st->st_mutex ));
return NULL;