Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Apr 2024 16:42:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 278476] fd and memory leak in ls
Message-ID:  <bug-278476-227-vfbWioeQnd@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-278476-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278476

--- Comment #3 from Paul Floyd <pjfloyd@wanadoo.fr> ---
If you do want something with annotation you can do something like

#include <valgrind.h>

...

if (RUNNING_ON_VALGRIND)
{
   close(fd);
}

That adds a Valgrind dependency. It'd be a lot easier to just close the file
descriptor.

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278476-227-vfbWioeQnd>