From ef0c04ae3ada0ce44a74c155833665437f0f7211 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 19 Jun 2023 00:09:24 +0200 Subject: [PATCH] Fixed a memory leak in sound/snd_ac97_codec.c. --- src/sound/snd_ac97_codec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sound/snd_ac97_codec.c b/src/sound/snd_ac97_codec.c index 51bc6bd2b..464e86f77 100644 --- a/src/sound/snd_ac97_codec.c +++ b/src/sound/snd_ac97_codec.c @@ -587,6 +587,7 @@ ac97_codec_init(const device_t *info) /* Associate this codec to the current controller. */ if (!ac97_codec || (ac97_codec_count <= 0)) { pclog("AC97 Codec %d: No controller to associate codec\n", ac97_codec_id); + free(dev); return NULL; } *ac97_codec = dev;