summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-pres.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-08-25 03:31:54 +0000
committerGuy Harris <guy@alum.mit.edu>2005-08-25 03:31:54 +0000
commitbcb91d2f4592bd9f03eb4e9a4731b6e790c7a59b (patch)
tree560bb6562bff9d41ed8f78dc308aec1f6ba69eb3 /epan/dissectors/packet-pres.c
parentbd8c6df4600d671d6b0ff69602fd43661c3112c1 (diff)
downloadwireshark-bcb91d2f4592bd9f03eb4e9a4731b6e790c7a59b.tar.gz
The OID strings returned by new_format_oid(), and the OID string
returned by format_oid(), are allocated with the ep_alloc routines; don't free them. svn path=/trunk/; revision=15525
Diffstat (limited to 'epan/dissectors/packet-pres.c')
-rw-r--r--epan/dissectors/packet-pres.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/epan/dissectors/packet-pres.c b/epan/dissectors/packet-pres.c
index afe3ee7d34..d9a40bffb4 100644
--- a/epan/dissectors/packet-pres.c
+++ b/epan/dissectors/packet-pres.c
@@ -439,7 +439,6 @@ print_oid_value(ASN1_SCK *asn,proto_tree *pres_tree,tvbuff_t *tvb,int
display_string = format_oid(oid, len);
proto_tree_add_text(pres_tree, tvb, *offset,length,"Value:%s",
display_string);
- g_free(display_string);
(*offset)=start+item_len;
asn->offset = (*offset);
}
@@ -465,7 +464,6 @@ item_len)
display_string = format_oid(oid, len);
proto_tree_add_text(pres_tree, tvb, *offset,length,"Value:%s",
display_string);
- g_free(display_string);
(*offset)=start+item_len;
asn->offset = (*offset);
}