mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
[xcode] Fix memleak on open input error
This commit is contained in:
parent
a0830727dd
commit
eea3a3bd27
@ -852,7 +852,7 @@ open_input(struct decode_ctx *ctx, const char *path, struct evbuffer *evbuf)
|
||||
if (!ifmt)
|
||||
{
|
||||
DPRINTF(E_LOG, L_XCODE, "Could not find input format: '%s'\n", ctx->settings.in_format);
|
||||
return -1;
|
||||
goto out_fail;
|
||||
}
|
||||
|
||||
CHECK_NULL(L_XCODE, ctx->avio = avio_input_evbuffer_open(evbuf));
|
||||
@ -871,7 +871,7 @@ open_input(struct decode_ctx *ctx, const char *path, struct evbuffer *evbuf)
|
||||
if (ret < 0)
|
||||
{
|
||||
DPRINTF(E_LOG, L_XCODE, "Cannot open '%s': %s\n", path, err2str(ret));
|
||||
return -1;
|
||||
goto out_fail;
|
||||
}
|
||||
|
||||
ret = avformat_find_stream_info(ctx->ifmt_ctx, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user