MXS-1740 Hintfilter leaks memory
Single spot where an existing hint ptr was overwritten. Removed gwbuf_add_hint() because it was adding hints at the opposite end compared to functions in hint.h. Added hint_splice() to replace.
This commit is contained in:
@ -53,6 +53,7 @@ typedef struct hint
|
||||
HINT *hint_alloc(HINT_TYPE, void *, unsigned int);
|
||||
HINT *hint_create_parameter(HINT *, char *, const char *);
|
||||
HINT *hint_create_route(HINT *, HINT_TYPE, const char *);
|
||||
HINT *hint_splice(HINT *head, HINT *list);
|
||||
void hint_free(HINT *);
|
||||
HINT *hint_dup(const HINT *);
|
||||
bool hint_exists(HINT **, HINT_TYPE);
|
||||
|
Reference in New Issue
Block a user