Commit 22bebfa5 authored by Wenbin Chen's avatar Wenbin Chen Committed by Guo Yejun

libavfilter/vf_dnn_detect: Set used pointer to NULL

Set used pointer to NULL in case it leaks the storage.
Signed-off-by: 's avatarWenbin Chen <wenbin.chen@intel.com>
parent a1e8892a
......@@ -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;
......
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