ref: a52096d5491af256af9996c8ec9f0dce7317b93b
parent: 57230e2f6591d33d2957faeb51bd7fb8aef03463
author: Mark Harris <mark.hsj@gmail.com>
date: Sat Mar 10 08:01:40 EST 2018
opusenc: Avoid leak on multiple save-range options
--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -597,6 +597,7 @@
opt_ctls_ctlval[opt_ctls*3+2]=atoi(spos+1);
opt_ctls++;
} else if (strcmp(optname, "save-range")==0) {
+ if (data.frange) fclose(data.frange);
data.frange=fopen_utf8(optarg,"w");
save_cmd=0;
if (data.frange==NULL) {