git.samba.org
/
metze
/
wireshark
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf4e620
)
GIOP: use wmem packet scope for get_modname_from_repoid()
author
Pascal Quantin
<pascal.quantin@gmail.com>
Tue, 6 Mar 2018 21:03:50 +0000
(22:03 +0100)
committer
Anders Broman
<a.broman58@gmail.com>
Wed, 7 Mar 2018 06:04:44 +0000
(06:04 +0000)
Bug: 14484
Change-Id: Ie2a4cc179ba25a1e3e50d689e21f003001a301fa
Reviewed-on: https://code.wireshark.org/review/26289
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
epan/dissectors/packet-giop.c
patch
|
blob
|
history
diff --git
a/epan/dissectors/packet-giop.c
b/epan/dissectors/packet-giop.c
index 22e86c6b60ee2cc1f8f34713e20e69311f7a508e..59410b51b43c8854b7a85155675965a62191e725 100644
(file)
--- a/
epan/dissectors/packet-giop.c
+++ b/
epan/dissectors/packet-giop.c
@@
-1697,7
+1697,7
@@
static gchar * get_modname_from_repoid(gchar *repoid) {
/* Now create a new string based on start and stop and \0 */
- modname =
g_strndup(
repoid+4, stop_mod - start_mod);
+ modname =
wmem_strndup(wmem_packet_scope(),
repoid+4, stop_mod - start_mod);
return modname;