diff options
author | Benny Baumann <BenBE@geshi.org> | 2024-04-08 10:48:24 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2024-04-08 18:38:34 +0200 |
commit | 1a12d5852602a7507d5911408561a754c446539c (patch) | |
tree | 63dc6cdfac4530ea758ffc42d587e593829d33af /dragonflybsd | |
parent | 327593e5cd5d48a6ff38d2877d7faaf53a6a8892 (diff) |
Work around GCC14 memleak diagnostic
While both pointers are identical, GCC-14 with -fanalyzer complains about these return statements to leak memory.
The leak is only reported with LTO though.
Diffstat (limited to 'dragonflybsd')
-rw-r--r-- | dragonflybsd/DragonFlyBSDProcess.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dragonflybsd/DragonFlyBSDProcess.c b/dragonflybsd/DragonFlyBSDProcess.c index 915ecd09..002378a7 100644 --- a/dragonflybsd/DragonFlyBSDProcess.c +++ b/dragonflybsd/DragonFlyBSDProcess.c @@ -56,7 +56,7 @@ Process* DragonFlyBSDProcess_new(const Machine* host) { DragonFlyBSDProcess* this = xCalloc(1, sizeof(DragonFlyBSDProcess)); Object_setClass(this, Class(DragonFlyBSDProcess)); Process_init(&this->super, host); - return &this->super; + return (Process*)this; } void Process_delete(Object* cast) { |