diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2011-10-30 21:32:27 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2011-10-30 21:32:27 +0000 |
commit | 5a466a5246f8e9979619b2731c161653ba70e2a0 (patch) | |
tree | 3e733b52160e53f38c40723be56fa15cf6c8d4b2 /epan/wslua | |
parent | f5c9ccd0c4f718a9c5de089aaabf82497b04edae (diff) |
Don't ep_strdup the protocol name when register a dissector, because
this name will be collected when loading a capture file and the name
will be gone.
svn path=/trunk/; revision=39681
Diffstat (limited to 'epan/wslua')
-rw-r--r-- | epan/wslua/wslua_proto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wslua/wslua_proto.c b/epan/wslua/wslua_proto.c index 6073b4d914..3979a48154 100644 --- a/epan/wslua/wslua_proto.c +++ b/epan/wslua/wslua_proto.c @@ -1236,7 +1236,7 @@ static int Proto_set_dissector(lua_State* L) { if (lua_isfunction(L,3)) { /* insert the dissector into the dissectors table */ - gchar* loname = ep_strdup(proto->name); + gchar* loname = g_strdup(proto->name); g_ascii_strdown(loname, -1); lua_rawgeti(L, LUA_REGISTRYINDEX, lua_dissectors_table_ref); |