forked from github/server
leak: spell names and other strings need to be released.
This commit is contained in:
parent
5f9c2e13a8
commit
1c2922aafa
1 changed files with 3 additions and 0 deletions
|
@ -38,6 +38,9 @@ quicklist * spells;
|
||||||
|
|
||||||
static void free_spell_cb(void *cbdata) {
|
static void free_spell_cb(void *cbdata) {
|
||||||
spell *sp = (spell *)cbdata;
|
spell *sp = (spell *)cbdata;
|
||||||
|
free(sp->syntax);
|
||||||
|
free(sp->parameter);
|
||||||
|
free(sp->sname);
|
||||||
free(sp->components);
|
free(sp->components);
|
||||||
free(sp);
|
free(sp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue