diff --git a/src/devices/file.c b/src/devices/file.c index 7289d1f..eb9871d 100644 --- a/src/devices/file.c +++ b/src/devices/file.c @@ -140,10 +140,7 @@ retry_realpath(const char *file_name) else return NULL; } - x = malloc(strlen(r) + 1); - strcpy(x, r); - free(r); - return x; + return r; } static void