forked from github/server
leak: deleting a config entry did not free its name
This commit is contained in:
parent
f740f2829a
commit
284a74c878
1 changed files with 1 additions and 0 deletions
|
@ -1144,6 +1144,7 @@ void set_param(struct param **p, const char *key, const char *data)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
*p = par->next;
|
*p = par->next;
|
||||||
|
free(par->name);
|
||||||
free(par);
|
free(par);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue