avformat/avio: fix memory leak in url_find_protocol

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/213/head^2
Yong Lei 9 years ago committed by Michael Niedermayer
parent 2875745d35
commit 7bacf74536
  1. 1
      libavformat/avio.c

@ -282,6 +282,7 @@ static const struct URLProtocol *url_find_protocol(const char *filename)
return up;
}
}
av_freep(&protocols);
return NULL;
}

Loading…
Cancel
Save