projects
/
xonotic
/
gmqcc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2189dd4
)
Fix another two leaks
author
Dale Weiler <killfieldengine@gmail.com>
Thu, 3 Jan 2013 21:38:07 +0000
(21:38 +0000)
committer
Dale Weiler <killfieldengine@gmail.com>
Thu, 3 Jan 2013 21:38:07 +0000
(21:38 +0000)
correct.c
patch
|
blob
|
history
diff --git
a/correct.c
b/correct.c
index 9cadde260c653ef66ac466b0c82508686a398ae5..04b0d3864985d091a154603e51e299c6d13da035 100644
(file)
--- a/
correct.c
+++ b/
correct.c
@@
-187,8
+187,8
@@
static size_t correct_alteration(const char *ident, char **array, size_t index)
false
),
correct_strndup (
- ident
+itr+1
,
- len
- (itr +
1)
+ ident
+ (itr+1)
,
+ len
- (itr+
1)
),
true
);
@@
-285,6
+285,8
@@
static char **correct_known(ht table, char **array, size_t rows, size_t *next) {
res[len++] = end[jtr];
}
}
+
+ mem_d(end);
}
*next = len;