at_deprecated was causing a small memory leak.

This commit is contained in:
Enno Rehling 2014-12-31 01:17:49 +01:00
parent c39be8d599
commit 2fbb04140c
3 changed files with 7 additions and 0 deletions

View File

@ -1144,6 +1144,7 @@ void kernel_done(void)
* calling it is optional, e.g. a release server will most likely not do it.
*/
translation_done();
free_attribs();
}
attrib_type at_germs = {

View File

@ -355,3 +355,7 @@ void a_write(struct storage *store, const attrib * attribs, const void *owner)
}
WRITE_TOK(store, "end");
}
void free_attribs(void) {
cb_clear(&cb_deprecated);
}

View File

@ -79,6 +79,8 @@ extern "C" {
extern void a_write(struct storage *store, const attrib * attribs,
const void *owner);
void free_attribs(void);
#define DEFAULT_AGE NULL
#define DEFAULT_INIT NULL
#define DEFAULT_FINALIZE NULL