MXS-1839 Do not leak memory from maxinfo "show sessions"

When there is nothing more to show, the resultset user data
must be freed.
This commit is contained in:
Johan Wikman
2018-05-02 10:37:03 +03:00
parent 5dbdb8af8a
commit b8bba93f08

View File

@ -780,6 +780,10 @@ sessionRowCallback(RESULTSET *set, void *data)
row = cbdata->row;
cbdata->row = NULL;
}
else
{
MXS_FREE(cbdata);
}
return row;
}