You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avfilter/dnn_filter_common: fix memleak
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
		| @@ -159,4 +159,10 @@ void ff_dnn_uninit(DnnContext *ctx) | ||||
|     if (ctx->dnn_module) { | ||||
|         (ctx->dnn_module->free_model)(&ctx->model); | ||||
|     } | ||||
|     if (ctx->model_outputnames) { | ||||
|         for (int i = 0; i < ctx->nb_outputs; i++) | ||||
|             av_free(ctx->model_outputnames[i]); | ||||
|  | ||||
|         av_freep(&ctx->model_outputnames); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user