libavfilter/vf_dnn_detect: Set used pointer to NULL

Set used pointer to NULL in case it leaks the storage.

Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
This commit is contained in:
Wenbin Chen 2023-12-14 10:49:28 +08:00 committed by Guo Yejun
parent a1e8892a8a
commit 22bebfa5e6
1 changed files with 1 additions and 0 deletions

View File

@ -223,6 +223,7 @@ static int dnn_detect_parse_yolo_output(AVFrame *frame, DNNData *output, int out
av_freep(&bbox);
return AVERROR(ENOMEM);
}
bbox = NULL;
}
}
return 0;