Simplify
authorVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:40:10 +0000 (20:40 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:40:10 +0000 (20:40 +0000)
Commited in SoC by Vitor Sessak on 2008-04-12 14:16:34

Originally committed as revision 13313 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/graphparser.c

index d0c678966fd0e60bc4a6e74fd46340930a2c6f47..278530ed2756105242699614c8d97ab3b037b0f6 100644 (file)
@@ -156,13 +156,9 @@ static void parse_link_name(const char **buf, char **name)
     if(*(*buf)++ != ']') {
         av_log(&log_ctx, AV_LOG_ERROR,
                "Mismatched '[' found in the following: \"%s\".\n", start);
-        goto fail;
+    fail:
+        av_freep(name);
     }
-
-    return;
-
- fail:
-    av_freep(name);
 }
 
 /**