diff options
Diffstat (limited to 'libglusterfs/src/stack.c')
| -rw-r--r-- | libglusterfs/src/stack.c | 16 | 
1 files changed, 10 insertions, 6 deletions
diff --git a/libglusterfs/src/stack.c b/libglusterfs/src/stack.c index 29b44aedfac..787f9a318ca 100644 --- a/libglusterfs/src/stack.c +++ b/libglusterfs/src/stack.c @@ -186,7 +186,7 @@ gf_proc_dump_call_frame_to_dict (call_frame_t *call_frame,          memset (key, 0, sizeof (key));          snprintf (key, sizeof (key), "%s.translator", prefix); -        ret = dict_set_str (dict, key, gf_strdup (tmp_frame.this->name)); +        ret = dict_set_dynstr (dict, key, gf_strdup (tmp_frame.this->name));          if (ret)                  return; @@ -199,7 +199,7 @@ gf_proc_dump_call_frame_to_dict (call_frame_t *call_frame,          if (tmp_frame.parent) {                  memset (key, 0, sizeof (key));                  snprintf (key, sizeof (key), "%s.parent", prefix); -                ret = dict_set_str (dict, key, +                ret = dict_set_dynstr (dict, key,                                      gf_strdup (tmp_frame.parent->this->name));                  if (ret)                          return; @@ -208,7 +208,8 @@ gf_proc_dump_call_frame_to_dict (call_frame_t *call_frame,          if (tmp_frame.wind_from) {                  memset (key, 0, sizeof (key));                  snprintf (key, sizeof (key), "%s.windfrom", prefix); -                ret = dict_set_str (dict, key, gf_strdup (tmp_frame.wind_from)); +                ret = dict_set_dynstr (dict, key, +                                       gf_strdup (tmp_frame.wind_from));                  if (ret)                          return;          } @@ -216,7 +217,8 @@ gf_proc_dump_call_frame_to_dict (call_frame_t *call_frame,          if (tmp_frame.wind_to) {                  memset (key, 0, sizeof (key));                  snprintf (key, sizeof (key), "%s.windto", prefix); -                ret = dict_set_str (dict, key, gf_strdup (tmp_frame.wind_to)); +                ret = dict_set_dynstr (dict, key, +                                       gf_strdup (tmp_frame.wind_to));                  if (ret)                          return;          } @@ -224,7 +226,8 @@ gf_proc_dump_call_frame_to_dict (call_frame_t *call_frame,          if (tmp_frame.unwind_from) {                  memset (key, 0, sizeof (key));                  snprintf (key, sizeof (key), "%s.unwindfrom", prefix); -                ret = dict_set_str (dict, key, gf_strdup (tmp_frame.unwind_from)); +                ret = dict_set_dynstr (dict, key, +                                       gf_strdup (tmp_frame.unwind_from));                  if (ret)                          return;          } @@ -232,7 +235,8 @@ gf_proc_dump_call_frame_to_dict (call_frame_t *call_frame,          if (tmp_frame.unwind_to) {                  memset (key, 0, sizeof (key));                  snprintf (key, sizeof (key), "%s.unwind_to", prefix); -                ret = dict_set_str (dict, key, gf_strdup (tmp_frame.unwind_to)); +                ret = dict_set_dynstr (dict, key, +                                       gf_strdup (tmp_frame.unwind_to));          }          return;  | 
