From: Dale Weiler Date: Fri, 1 Feb 2013 06:22:29 +0000 (+0000) Subject: Fix memleak and assignment for cached lengths in corrector X-Git-Tag: before-library~177 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=bf6eb9432e00b7618a898a8587c2f5849cb95113;ds=sidebyside Fix memleak and assignment for cached lengths in corrector --- diff --git a/correct.c b/correct.c index 526e42c..6f234b0 100644 --- a/correct.c +++ b/correct.c @@ -502,11 +502,13 @@ void correct_init(correction_t *c) { correct_pool_new(); c->edits = NULL; + c->lens = NULL; } void correct_free(correction_t *c) { vec_free(c->edits); + vec_free(c->lens); correct_pool_delete(); }