Commit ee26f573 authored by Francois Cartegnie's avatar Francois Cartegnie

stream_filter: smooth: useless code cleanup

parent 42e6f502
......@@ -97,9 +97,8 @@ chunk_t *chunk_New( sms_stream_t* sms, uint64_t duration,\
void chunk_Free( chunk_t *chunk )
{
if( chunk->data )
FREENULL( chunk->data );
FREENULL( chunk );
free( chunk->data );
free( chunk );
}
sms_stream_t * sms_New( void )
......@@ -175,10 +174,10 @@ void sms_queue_free( sms_queue_t* queue )
while( item )
{
next = item->next;
FREENULL( item );
free( item );
item = next;
}
FREENULL( queue );
free( queue );
}
int sms_queue_put( sms_queue_t *queue, const uint64_t value )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment