forked from github/server
memory leak: at_travelunit contains a quicklist, needs custom cleanup code.
This commit is contained in:
parent
7e9c36b599
commit
7c2c520911
|
@ -38,13 +38,18 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
static void travel_done(attrib *a) {
|
||||
quicklist *ql = (quicklist *)a->data.v;
|
||||
ql_free(ql);
|
||||
}
|
||||
|
||||
/*********************/
|
||||
/* at_travelunit */
|
||||
/*********************/
|
||||
attrib_type at_travelunit = {
|
||||
"travelunit",
|
||||
DEFAULT_INIT,
|
||||
DEFAULT_FINALIZE,
|
||||
travel_done,
|
||||
DEFAULT_AGE,
|
||||
NO_WRITE,
|
||||
NO_READ
|
||||
|
|
Loading…
Reference in New Issue