Fix for a segfault.

This commit is contained in:
Nirbhay Choubey 2014-05-21 16:03:58 -04:00
parent 645d402544
commit 0903e2b744

View File

@ -44,11 +44,11 @@ typedef struct wsrep_dummy
static void dummy_free(wsrep_t *w)
{
WSREP_DBUG_ENTER(w);
free(w->ctx);
if (WSREP_DUMMY(w)->options) {
free(WSREP_DUMMY(w)->options);
WSREP_DUMMY(w)->options = NULL;
}
free(w->ctx);
w->ctx = NULL;
}