diff --git a/libsemanage/src/handle.c b/libsemanage/src/handle.c index 7fcd2b49..ab39943c 100644 --- a/libsemanage/src/handle.c +++ b/libsemanage/src/handle.c @@ -319,6 +319,7 @@ void semanage_select_store(semanage_handle_t * sh, char *storename, /* This just sets the storename to what the user requests, no verification of existance will be done until connect */ + free(sh->conf->store_path); sh->conf->store_path = strdup(storename); assert(sh->conf->store_path); /* no way to return failure */ sh->conf->store_type = storetype;