Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7E8D4E77188 for ; Fri, 20 Dec 2024 17:40:27 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [45.14.194.44]) (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) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 699BA601BB; Fri, 20 Dec 2024 18:40:15 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 699BA601BB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1734716425; bh=CfOFa/5wpWIijHxyUrLjjOgkMZyJ+l7m9iiZGY1Qk4c=; h=From:To:In-Reply-To:References:Subject:Date:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From; b=OaaQrgAKLb0DVEBXPpQNApdlD5355XPgoP+acebuFAwXQptUxYDLgoYrntdplV9E1 FRJ8guBdA+OABzEM1ui8t7Myu4/MpuH9WC/61cfFTxw+X69PxlLUKoJiMBTjN75R2K rW47mf7pSDeTPw5sSdTnr0aRQGKiCECbNWCTUxZ0= Received: by alsa1.perex.cz (Postfix, from userid 50401) id C769CF805B2; Fri, 20 Dec 2024 18:39:47 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 9FDA3F805C5; Fri, 20 Dec 2024 18:39:47 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 08AE1F80508; Fri, 20 Dec 2024 18:39:42 +0100 (CET) Received: from webhooks-bot.alsa-project.org (vmi2259423.contaboserver.net [45.14.194.44]) by alsa1.perex.cz (Postfix) with ESMTP id 4209DF8003C for ; Fri, 20 Dec 2024 18:39:39 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 4209DF8003C MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: GitHub issues - opened To: alsa-devel@alsa-project.org In-Reply-To: <1734716379551697493-webhooks-bot@alsa-project.org> References: <1734716379551697493-webhooks-bot@alsa-project.org> Subject: API memory allocator Message-Id: <20241220173942.08AE1F80508@alsa1.perex.cz> Date: Fri, 20 Dec 2024 18:39:42 +0100 (CET) Message-ID-Hash: 7B74QSL3XHYYEKT4NEBQIDOQVYS74IVS X-Message-ID-Hash: 7B74QSL3XHYYEKT4NEBQIDOQVYS74IVS X-MailFrom: github@alsa-project.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: alsa-project/alsa-lib issue #429 was opened from sylware: If I recall properly some data returned from the alsa lib API must be free using the C runtime free(). Would it be appropriate to move away from the C allocator to an API install-able memory allocator (like vulkan3D)? Backward compatibility would be achieved since the "default memory allocator" would be the C one, if the C runtime is around. Unless that part of the API is already deprecated (and I should not have used it). Issue URL : https://github.com/alsa-project/alsa-lib/issues/429 Repository URL: https://github.com/alsa-project/alsa-lib