udev-link-config: add missing OOM check

This commit is contained in:
Lennart Poettering
2017-12-14 20:09:45 +01:00
parent ab27086387
commit c805d41c9b
+2
View File
@@ -186,6 +186,8 @@ static int load_link(link_config_ctx *ctx, const char *filename) {
return -ERANGE;
link->filename = strdup(filename);
if (!link->filename)
return log_oom();
LIST_PREPEND(links, ctx->links, link);
link = NULL;