When adding an entry to a dissector string table, take a copy of the pattern
authorEvan Huus <eapache@gmail.com>
Wed, 30 Oct 2013 01:42:11 +0000 (01:42 -0000)
committerEvan Huus <eapache@gmail.com>
Wed, 30 Oct 2013 01:42:11 +0000 (01:42 -0000)
commit8f5bdaa54b7666c02c873e69c974d2fdfc2899e5
tree0344ad279ea5db25eb8f632835f95c1b61fdc0d9
parentaa452c378f1d06038c4f33fcc7cd703e74d7b73a
When adding an entry to a dissector string table, take a copy of the pattern
string (and pass g_free to g_hash_table_new_full to free it).

This means callers don't have to worry about the scope of the memory they pass
in, and fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9296

svn path=/trunk/; revision=52977
epan/packet.c