From nobody Sat Apr 20 16:42:19 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VMHNr3jHdz5J5TT for ; Sat, 20 Apr 2024 16:42:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VMHNq6VH4z40Vs for ; Sat, 20 Apr 2024 16:42:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713631339; a=rsa-sha256; cv=none; b=Q12iVZGx5cXt/VgNPUjuzw2ZYrOh6hlpQR9arrlXKWATRvO0X494lIr/vFvezFMNh8zu9m i7HrSxYiPMukWcBsTpwYk0QC3gvgZgRTuBgO4BpTt5wDf3Q7lVlm8+wgkfGjvcMFFr8bFc uSU0YWRmlfHyFlByxw4ujrbd93Y8/TB+7Vg8Kq6QpgVrNHwsgPqBNKAd5uRPas9uWu9Kvp 4cY8eWGAW6JJvZMtPOc8cnrG/Qjy3z8/0X/ukR9yhGh17smP2aC/WUScfDLYCXpCMxH2FW PUeMHxBnLPYtFtZdvK8nlQ4rjFjEpjil/xG1xTgBmi7yVKVZA4RXxco2XhKWeQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713631339; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rI/StCkGLyT4DsV8gKPNsh4FmkyhmwkaC0UFgO8zuTI=; b=p1/e9cjkqQ/O1Z3GFrjDfSfbCcH+cP3JTW1PYDHmqBkeh6uXdE0LeONXeoKib8OBXsXgfJ MOxMhXUCQoye0pvTa3lBCw62HSGj31LhW8/cnQkUyUfEQ4Lr88FEJBHbOFoaBXHRjhYA9F UJMRS2DRFHwiejHCMhApihirn4iJwaocZ5n5YeOuc5XvkREI88Cd3jDPXtdjIBBOIV1foC cUNcZ6xNFSdlyw27ktvinuCcl9GGl3t5wr7rUbJEPpZhH9ABu5uqJSaCbdjGeV4g+sLYJb U7J1RjDWAlHxUrTWg1YthWMo15Ryo6b1R61VoBDoxR7b53sUXQuoKtIqqjltgQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VMHNq65wGzlbd for ; Sat, 20 Apr 2024 16:42:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 43KGgJkP096454 for ; Sat, 20 Apr 2024 16:42:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43KGgJLB096451 for bugs@FreeBSD.org; Sat, 20 Apr 2024 16:42:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 278476] fd and memory leak in ls Date: Sat, 20 Apr 2024 16:42:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pjfloyd@wanadoo.fr X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278476 --- Comment #3 from Paul Floyd --- If you do want something with annotation you can do something like #include ... if (RUNNING_ON_VALGRIND) { close(fd); } That adds a Valgrind dependency. It'd be a lot easier to just close the file descriptor. --=20 You are receiving this mail because: You are the assignee for the bug.=