Skip to content
Snippets Groups Projects
Commit 7b115db7 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

RAGE: SLURPD malloc bug in st.c

parent 1596b380
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment