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) {
|
||||
spell *sp = (spell *)cbdata;
|
||||
free(sp->syntax);
|
||||
free(sp->parameter);
|
||||
free(sp->sname);
|
||||
free(sp->components);
|
||||
free(sp);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue