mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-27 07:22:44 +02:00
libeplayer3-arm: fix mem leak uri on open error
Origin commit data
------------------
Branch: master
Commit: 672366c047
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2019-08-01 (Thu, 01 Aug 2019)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -177,6 +177,8 @@ static int PlaybackOpen(Context_t *context, PlayFiles_t *pFiles)
|
|||||||
if (!extension)
|
if (!extension)
|
||||||
{
|
{
|
||||||
playback_err("Wrong extension (%s)\n", context->playback->uri + 7);
|
playback_err("Wrong extension (%s)\n", context->playback->uri + 7);
|
||||||
|
free(context->playback->uri);
|
||||||
|
context->playback->uri = NULL;
|
||||||
return cERR_PLAYBACK_ERROR;
|
return cERR_PLAYBACK_ERROR;
|
||||||
}
|
}
|
||||||
else if (!strncmp("ts", extension, 2))
|
else if (!strncmp("ts", extension, 2))
|
||||||
@@ -206,6 +208,8 @@ static int PlaybackOpen(Context_t *context, PlayFiles_t *pFiles)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
playback_err("Unknown stream (%s)\n", uri);
|
playback_err("Unknown stream (%s)\n", uri);
|
||||||
|
free(context->playback->uri);
|
||||||
|
context->playback->uri = NULL;
|
||||||
return cERR_PLAYBACK_ERROR;
|
return cERR_PLAYBACK_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -215,6 +219,8 @@ static int PlaybackOpen(Context_t *context, PlayFiles_t *pFiles)
|
|||||||
(context->container->selectedContainer->Command(context, CONTAINER_INIT, pFiles) < 0))
|
(context->container->selectedContainer->Command(context, CONTAINER_INIT, pFiles) < 0))
|
||||||
{
|
{
|
||||||
playback_err("CONTAINER_ADD failed\n");
|
playback_err("CONTAINER_ADD failed\n");
|
||||||
|
free(context->playback->uri);
|
||||||
|
context->playback->uri = NULL;
|
||||||
return cERR_PLAYBACK_ERROR;
|
return cERR_PLAYBACK_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user