[gnome-builder] editorconfig: fix implausable memory leak
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] editorconfig: fix implausable memory leak
- Date: Sat, 3 Oct 2015 23:42:50 +0000 (UTC)
commit 820118f8f8b297f8eaa4c59436bed0f70dd484fa
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]