aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWenbin Chen <wenbin.chen@intel.com>2023-12-14 10:49:28 +0800
committerGuo Yejun <yejun.guo@intel.com>2023-12-15 20:04:54 +0800
commit22bebfa5e6cfcbd332a387b6f91ae38a4cbaf8b9 (patch)
tree8a8ac5a30a803f4b867ad8f88da93fa80e4d9944
parenta1e8892a8a2e5d32e31cc5b30a3727700de51017 (diff)
downloadffmpeg-22bebfa5e6cfcbd332a387b6f91ae38a4cbaf8b9.tar.gz
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>
-rw-r--r--libavfilter/vf_dnn_detect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_dnn_detect.c b/libavfilter/vf_dnn_detect.c
index 5668b8b017..3464af86c8 100644
--- a/libavfilter/vf_dnn_detect.c
+++ b/libavfilter/vf_dnn_detect.c
@@ -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;