diff options
-rw-r--r-- | src/backend-direct.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend-direct.c b/src/backend-direct.c index f92cb7d..9f62c4d 100644 --- a/src/backend-direct.c +++ b/src/backend-direct.c @@ -482,6 +482,7 @@ direct_start(struct gamma_state *state) state->site_name = NULL; } err = libgamma_site_initialise(&state->site, state->method, state->site_name); + state->site_name = NULL; if (err) { weprintf("libgamma_site_initialise %s %s: %s", libgamma_const_of_method(state->method), @@ -490,8 +491,6 @@ direct_start(struct gamma_state *state) return -1; } state->connected = 1; - free(state->site_name); - state->site_name = NULL; } /* Allocate partition states */ |