forked from osmocom/wireshark
tvbparse: change g_strdup_printf to wmem_strdup_printf.
Change-Id: I57ff604d23967eb1f6481c7019e3eab0389dc3a5 Reviewed-on: https://code.wireshark.org/review/15257 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Guy Harris <guy@alum.mit.edu> Reviewed-by: Dario Lombardo <lomato@gmail.com>
This commit is contained in:
parent
34cacfc6a6
commit
30d1afb6be
|
@ -1144,8 +1144,8 @@ tvbparse_wanted_t* tvbparse_quoted(const int id,
|
|||
const char quote,
|
||||
const char esc) {
|
||||
|
||||
gchar* esc_quot = g_strdup_printf("%c%c",esc,quote);
|
||||
gchar* quot = g_strdup_printf("%c",quote);
|
||||
gchar* esc_quot = wmem_strdup_printf(wmem_epan_scope(), "%c%c",esc,quote);
|
||||
gchar* quot = wmem_strdup_printf(wmem_epan_scope(), "%c",quote);
|
||||
tvbparse_wanted_t* want_quot = tvbparse_char(-1,quot,NULL,NULL,NULL);
|
||||
|
||||
return tvbparse_set_oneof(id, data, before_cb, after_cb,
|
||||
|
|
Loading…
Reference in New Issue