Remove unnecessary av_strdup() and av_free().
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Fri, 24 Sep 2010 09:15:27 +0000 (09:15 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Fri, 24 Sep 2010 09:15:27 +0000 (09:15 +0000)
Originally committed as revision 25169 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/vf_frei0r.c

index eb09ee9..4ad7125 100644 (file)
@@ -217,11 +217,10 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
                 break;
         av_free(path);
     }
-    if (!frei0r->dl_handle && (path = av_strdup(getenv("HOME")))) {
+    if (!frei0r->dl_handle && (path = getenv("HOME"))) {
         char prefix[1024];
         snprintf(prefix, sizeof(prefix), "%s/.frei0r-1/lib/", path);
         frei0r->dl_handle = load_path(ctx, prefix, dl_name);
-        av_free(path);
     }
     if (!frei0r->dl_handle)
         frei0r->dl_handle = load_path(ctx, "/usr/local/lib/frei0r-1/", dl_name);