[gnome-builder/gnome-builder-3-18] editorconfig: fix implausable memory leak
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-18] editorconfig: fix implausable memory leak
- Date: Tue, 13 Oct 2015 07:36:12 +0000 (UTC)
commit 794efc7221e4d853b0ddf0ab55b12e9e767c41cd
Author: Christian Hergert <christian hergert me>
Date: Sat Oct 3 16:42:42 2015 -0700
editorconfig: fix implausable memory leak
contrib/libeditorconfig/editorconfig.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/contrib/libeditorconfig/editorconfig.c b/contrib/libeditorconfig/editorconfig.c
index ce81a00..778b23c 100644
--- a/contrib/libeditorconfig/editorconfig.c
+++ b/contrib/libeditorconfig/editorconfig.c
@@ -509,6 +509,7 @@ int editorconfig_parse(const char* full_filename, editorconfig_handle h)
sizeof(editorconfig_name_value) * eh->name_value_count);
if (eh->name_values == NULL) {
free(hfp.full_filename);
+ free(config_files);
return EDITORCONFIG_PARSE_MEMORY_ERROR;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]