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,\ ...@@ -97,9 +97,8 @@ chunk_t *chunk_New( sms_stream_t* sms, uint64_t duration,\
void chunk_Free( chunk_t *chunk ) void chunk_Free( chunk_t *chunk )
{ {
if( chunk->data ) free( chunk->data );
FREENULL( chunk->data ); free( chunk );
FREENULL( chunk );
} }
sms_stream_t * sms_New( void ) sms_stream_t * sms_New( void )
...@@ -175,10 +174,10 @@ void sms_queue_free( sms_queue_t* queue ) ...@@ -175,10 +174,10 @@ void sms_queue_free( sms_queue_t* queue )
while( item ) while( item )
{ {
next = item->next; next = item->next;
FREENULL( item ); free( item );
item = next; item = next;
} }
FREENULL( queue ); free( queue );
} }
int sms_queue_put( sms_queue_t *queue, const uint64_t value ) 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