diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-09-24 13:15:27 +0400 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-09-24 13:15:27 +0400 |
commit | 32eba9f27e72d4d9471d1f312620cb73b6272443 (patch) | |
tree | ab57937c421d2d0648bb05792c88eb188dac9bbb /libavfilter | |
parent | 07cac2a0828a15ac4a5caf36e3816f9ab15b9e99 (diff) |
Remove unnecessary av_strdup() and av_free().
Originally committed as revision 25169 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_frei0r.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/vf_frei0r.c b/libavfilter/vf_frei0r.c index eb09ee98a8..4ad7125875 100644 --- a/libavfilter/vf_frei0r.c +++ b/libavfilter/vf_frei0r.c @@ -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); |