Convert the value string APIs that only currently have packet-scope use to wmem.

Change-Id: I36942493ce73b49e7257edea967eddf22f21f58e
Reviewed-on: https://code.wireshark.org/review/6879
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Michael Mann 2015-01-31 07:55:10 -05:00
parent 6284040623
commit dc6482b7c2
1 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ val64_to_str(const guint64 val, const val64_string *vs, const char *fmt)
if (ret != NULL)
return ret;
return ep_strdup_printf(fmt, val);
return wmem_strdup_printf(wmem_packet_scope(), fmt, val);
}
const gchar *
@ -490,7 +490,7 @@ str_to_str(const gchar *val, const string_string *vs, const char *fmt)
if (ret != NULL)
return ret;
return ep_strdup_printf(fmt, val);
return wmem_strdup_printf(wmem_packet_scope(), fmt, val);
}
/* Like try_val_to_str_idx except for string_string */
@ -538,7 +538,7 @@ rval_to_str(const guint32 val, const range_string *rs, const char *fmt)
if(ret != NULL)
return ret;
return ep_strdup_printf(fmt, val);
return wmem_strdup_printf(wmem_packet_scope(), fmt, val);
}
/* Like val_to_str_const except for range_string */