[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] memory leak
From: |
José Vilmar Estácio de Souza |
Subject: |
[PATCH 1/2] memory leak |
Date: |
Sun, 28 Feb 2010 21:24:10 -0300 |
The module_audio_init_spd function allocates memory to the string info
but would not release at the end.
---
src/modules/module_utils.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/modules/module_utils.c b/src/modules/module_utils.c
index abce4c7..1840764 100644
--- a/src/modules/module_utils.c
+++ b/src/modules/module_utils.c
@@ -1197,6 +1197,7 @@ module_audio_init_spd(char **status_info)
g_string_append_printf(info, "Opening sound device failed. Reason: %s.
", error);
ABORT("Can't open sound device.");
}
+ g_string_free(info, 1);
return 0;
}
--
1.6.3.3
--------------060902000005080603050908
Content-Type: text/x-patch;
name="0002-memory-leak.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="0002-memory-leak.patch"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH 1/2] memory leak,
José Vilmar Estácio de Souza <=