mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
a1e8892a8a
commit
22bebfa5e6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue