History

avfilter/vf_signature: Free inpads' names generically

Andreas Rheinhardt committed 5 years ago

Commit 07aacf51 parent 65884bd1 file · +1 −5Browse files

Unified · Split

libavfilter/vf_signature.c+1−5
@@ -664,10 +664,8 @@ static av_cold int init(AVFilterContext *ctx) · 663 unmodified lines
664 664
665 if (!pad.name)665 if (!pad.name)
666 return AVERROR(ENOMEM);666 return AVERROR(ENOMEM);
667 if ((ret = ff_append_inpad(ctx, &pad)) < 0) {667 if ((ret = ff_append_inpad_free_name(ctx, &pad)) < 0)
668 av_freep(&pad.name);
669 return ret;668 return ret;
670 }
671 669
672 sc = &(sic->streamcontexts[i]);670 sc = &(sic->streamcontexts[i]);
673 671
@@ -730,8 +728,6 @@ static av_cold void uninit(AVFilterContext *ctx) · 56 unmodified lines
730 }728 }
731 av_freep(&sic->streamcontexts);729 av_freep(&sic->streamcontexts);
732 }730 }
733 for (unsigned i = 0; i < ctx->nb_inputs; i++)
734 av_freep(&ctx->input_pads[i].name);
735}731}
736 732
737static int config_output(AVFilterLink *outlink)733static int config_output(AVFilterLink *outlink)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t