Remove NULL checks before freeing memory in ctc_context_destroy

上级 a6348816
......@@ -26,16 +26,12 @@ void ctc_context_init(ctc_context_t * context)
void ctc_context_destroy(ctc_context_t * context)
{
if ( NULL != context->workspace )
free( context->workspace );
if ( NULL != context->input_lengths )
free( context->input_lengths );
if ( NULL != context->flat_labels )
free( context->flat_labels );
if ( NULL != context->label_lengths )
free( context->label_lengths );
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论