diff options
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volgen.c | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c index 84725982b83..bd56daa11c9 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.c +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c @@ -772,6 +772,9 @@ glusterd_check_globaloption (char *key)                  }          } +        if (completion) +                GF_FREE (completion); +          for (vmep = glusterd_volopt_map; vmep->key; vmep++) {                  if (strcmp (vmep->key, key) == 0) {                          if ((vmep->type == GLOBAL_DOC) || @@ -806,6 +809,9 @@ glusterd_check_localoption (char *key)                 }          } +        if (completion) +                GF_FREE (completion); +          for (vmep = glusterd_volopt_map; vmep->key; vmep++) {                  if (strcmp (vmep->key, key) == 0) {                          if ((vmep->type == DOC) || @@ -840,6 +846,9 @@ glusterd_check_voloption (char *key)                  }          } +        if (completion) +                GF_FREE (completion); +          for (vmep = glusterd_volopt_map; vmep->key; vmep++) {                  if (strcmp (vmep->key, key) == 0) {                          if ((vmep->type == DOC) ||  | 
