Remove NULL checks for members of ctc_context in ctc_context_destroy

上级 02ceb309
...@@ -27,14 +27,11 @@ void ctc_context_destroy(ctc_context_t * context) ...@@ -27,14 +27,11 @@ void ctc_context_destroy(ctc_context_t * context)
{ {
gpudata_release( context->workspace ); gpudata_release( context->workspace );
if ( NULL != context->input_lengths ) free( context->input_lengths );
free( context->input_lengths );
if ( NULL != context->flat_labels ) free( context->flat_labels );
free( context->flat_labels );
if ( NULL != context->label_lengths ) free( context->label_lengths );
free( context->label_lengths );
} }
int ctc_check_result(ctcStatus_t retcode, const char * msg) int ctc_check_result(ctcStatus_t retcode, const char * msg)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论