From: Dale Weiler Date: Thu, 3 Jan 2013 21:38:07 +0000 (+0000) Subject: Fix another two leaks X-Git-Tag: before-library~373^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ab64706cc3d8c9a2d1e9ae8c952f7e8ce49d353b;p=xonotic%2Fgmqcc.git Fix another two leaks --- diff --git a/correct.c b/correct.c index 9cadde2..04b0d38 100644 --- 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;