summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavfilter/graphparser.c3
1 files changed, 1 insertions, 2 deletions
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;
}