summaryrefslogtreecommitdiff
path: root/src/shared/memfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/memfd.c')
-rw-r--r--src/shared/memfd.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/shared/memfd.c b/src/shared/memfd.c
index e335c0c18b..c21642f49a 100644
--- a/src/shared/memfd.c
+++ b/src/shared/memfd.c
@@ -54,13 +54,7 @@ int memfd_new(const char *name) {
if (isempty(pr))
name = "sd";
else {
- _cleanup_free_ char *e = NULL;
-
- e = utf8_escape_invalid(pr);
- if (!e)
- return -ENOMEM;
-
- g = strappend("sd-", e);
+ g = strappend("sd-", pr);
if (!g)
return -ENOMEM;