mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-22 10:41:43 +00:00
Fix another two leaks
This commit is contained in:
parent
2189dd4b85
commit
ab64706cc3
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue