From dee7e3d3ccafb9af6bd1b80883e184bc6a785120 Mon Sep 17 00:00:00 2001 From: Thomas Guillem Date: Wed, 20 Sep 2017 13:06:14 +0200 Subject: [PATCH] input: add missing error check --- src/input/item.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/input/item.c b/src/input/item.c index cf56ce98f7..376cf59b08 100644 --- a/src/input/item.c +++ b/src/input/item.c @@ -1665,6 +1665,8 @@ int vlc_readdir_helper_additem(struct vlc_readdir_helper *p_rdh, input_item_CopyOptions(p_item, p_rdh->p_node->p_item); p_node = input_item_node_AppendItem(p_rdh->p_node, p_item); input_item_Release(p_item); + if (p_node == NULL) + return VLC_ENOMEM; /* A slave can also be an item. If there is a match, this item will be * removed from the parent node. This is not a common case, since most -- GitLab