diff options
author | Michael Mann <mmann78@netscape.net> | 2012-08-14 16:29:38 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2012-08-14 16:29:38 +0000 |
commit | 41082851795afd9709b77d2d07a76a6d03c1833f (patch) | |
tree | 6dfbdebba8267cf7dfa6730f9965357c2211db56 /epan/dissectors/packet-fclctl.c | |
parent | c7a6af44bbb1ebbabcd0919926e95f212c417372 (diff) |
fix subtle g_strdup_printf() memory leaks with ephemeral memory
svn path=/trunk/; revision=44491
Diffstat (limited to 'epan/dissectors/packet-fclctl.c')
-rw-r--r-- | epan/dissectors/packet-fclctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-fclctl.c b/epan/dissectors/packet-fclctl.c index f52c4a5252..d60fbcb04f 100644 --- a/epan/dissectors/packet-fclctl.c +++ b/epan/dissectors/packet-fclctl.c @@ -131,13 +131,13 @@ const gchar * fclctl_get_paramstr (guint32 linkctl_type, guint32 param) { if (linkctl_type == FC_LCTL_PBSY) { - return g_strdup_printf("%s, %s", + return ep_strdup_printf("%s, %s", val_to_str (((param & 0xFF000000) >> 24), fc_lctl_pbsy_acode_val, "0x%x"), val_to_str (((param & 0x00FF0000) >> 16), fc_lctl_pbsy_rjt_val, "0x%x")); } if ((linkctl_type == FC_LCTL_FRJT) || (linkctl_type == FC_LCTL_PRJT)) { - return g_strdup_printf("%s, %s", + return ep_strdup_printf("%s, %s", val_to_str (((param & 0xFF000000) >> 24), fc_lctl_rjt_acode_val, "0x%x"), val_to_str (((param & 0x00FF0000) >> 16), fc_lctl_rjt_val, "%x")); } |