forked from github/server
at_deprecated was causing a small memory leak.
This commit is contained in:
parent
c39be8d599
commit
2fbb04140c
|
@ -1144,6 +1144,7 @@ void kernel_done(void)
|
||||||
* calling it is optional, e.g. a release server will most likely not do it.
|
* calling it is optional, e.g. a release server will most likely not do it.
|
||||||
*/
|
*/
|
||||||
translation_done();
|
translation_done();
|
||||||
|
free_attribs();
|
||||||
}
|
}
|
||||||
|
|
||||||
attrib_type at_germs = {
|
attrib_type at_germs = {
|
||||||
|
|
|
@ -355,3 +355,7 @@ void a_write(struct storage *store, const attrib * attribs, const void *owner)
|
||||||
}
|
}
|
||||||
WRITE_TOK(store, "end");
|
WRITE_TOK(store, "end");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void free_attribs(void) {
|
||||||
|
cb_clear(&cb_deprecated);
|
||||||
|
}
|
||||||
|
|
|
@ -79,6 +79,8 @@ extern "C" {
|
||||||
extern void a_write(struct storage *store, const attrib * attribs,
|
extern void a_write(struct storage *store, const attrib * attribs,
|
||||||
const void *owner);
|
const void *owner);
|
||||||
|
|
||||||
|
void free_attribs(void);
|
||||||
|
|
||||||
#define DEFAULT_AGE NULL
|
#define DEFAULT_AGE NULL
|
||||||
#define DEFAULT_INIT NULL
|
#define DEFAULT_INIT NULL
|
||||||
#define DEFAULT_FINALIZE NULL
|
#define DEFAULT_FINALIZE NULL
|
||||||
|
|
Loading…
Reference in New Issue