diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index 1e74542dfa..6b01f49650 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -197,8 +197,7 @@ typedef struct AVFilterInOut { static void free_inout(AVFilterInOut *head) { while (head) { - AVFilterInOut *next; - next = head->next; + AVFilterInOut *next = head->next; av_free(head); head = next; }