From bd58a086868f4d6b2e34a23efbd1dd7f7d73a302c0eefe839e96caa7fdea5281 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Wed, 1 Oct 2025 04:27:17 -0400 Subject: [PATCH] The homedir is statically owned, so don't free it! This fixes at least one regression. --- dlib/dlib.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlib/dlib.cc b/dlib/dlib.cc index 395d75f..7d179c2 100644 --- a/dlib/dlib.cc +++ b/dlib/dlib.cc @@ -935,8 +935,7 @@ CharPtrNoStringConversion dGetcwd (void) std::optional< std::string > dGethomedir_string() { - auto owned= Alepha::AutoRAII< char * >{ dGethomedir, dFree }; - const char *const ptr= owned; + const char *const ptr= dGethomedir(); if( not ptr ) return std::nullopt; return ptr;