lavfi/curves: fix memleak after master component dition.
authorClément Bœsch <ubitux@gmail.com>
Mon, 15 Apr 2013 16:04:24 +0000 (18:04 +0200)
committerClément Bœsch <ubitux@gmail.com>
Mon, 15 Apr 2013 16:04:35 +0000 (18:04 +0200)
libavfilter/vf_curves.c

index dc012fa..9f5d8bd 100644 (file)
@@ -427,7 +427,7 @@ static av_cold int init(AVFilterContext *ctx)
         }
     }
 
-    for (i = 0; i < NB_COMP; i++) {
+    for (i = 0; i < NB_COMP + 1; i++) {
         struct keypoint *point = comp_points[i];
         while (point) {
             struct keypoint *next = point->next;