From e9461c19db6d6c353b6a5355ead8dda2e9045229 Mon Sep 17 00:00:00 2001 From: наб Date: Thu, 23 Jan 2025 23:43:30 +0100 Subject: flAbsPath(): try to re-use storage of argument --- apt-pkg/contrib/fileutl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index 4e72d8462..c74632218 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -773,9 +773,9 @@ string flAbsPath(string File) _error->Errno("realpath", "flAbsPath on %s failed", File.c_str()); return ""; } - std::string AbsPath(p); + File = p; free(p); - return AbsPath; + return File; } /*}}}*/ std::string flNormalize(std::string file) /*{{{*/ -- cgit v1.2.3-70-g09d2