aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rtcp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-05-28 22:40:19 +0000
committerGuy Harris <guy@alum.mit.edu>2003-05-28 22:40:19 +0000
commit2573a5527a6b793a7fc3acef0f178d38cb6584fb (patch)
tree6eccc3e2a951efabe176daa9d48747f1b4388032 /packet-rtcp.c
parent28c73939f3602b90f7d5648f719ebd143050ac6b (diff)
From Laurent Rabret: use "g_free()", not "free()", to free stuff
allocated with "g_malloc()" and related GLib routines. svn path=/trunk/; revision=7758
Diffstat (limited to 'packet-rtcp.c')
-rw-r--r--packet-rtcp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-rtcp.c b/packet-rtcp.c
index d9918d8933..2274dd8bc2 100644
--- a/packet-rtcp.c
+++ b/packet-rtcp.c
@@ -1,6 +1,6 @@
/* packet-rtcp.c
*
- * $Id: packet-rtcp.c,v 1.36 2003/04/27 20:57:58 deniel Exp $
+ * $Id: packet-rtcp.c,v 1.37 2003/05/28 22:40:19 guy Exp $
*
* Routines for RTCP dissection
* RTCP = Real-time Transport Control Protocol
@@ -390,7 +390,7 @@ dissect_rtcp_bye( tvbuff_t *tvb, int offset, proto_tree *tree,
/* strncpy( reason_text, pd + offset, reason_length ); */
reason_text[ reason_length ] = '\0';
proto_tree_add_string( tree, hf_rtcp_ssrc_text, tvb, offset, reason_length, reason_text );
- free( reason_text );
+ g_free( reason_text );
offset += reason_length;
}
@@ -469,7 +469,7 @@ dissect_rtcp_sdes( tvbuff_t *tvb, int offset, proto_tree *tree,
/* strncpy( prefix_string, pd + offset, prefix_len ); */
prefix_string[ prefix_len ] = '\0';
proto_tree_add_string( sdes_item_tree, hf_rtcp_ssrc_prefix_string, tvb, offset, prefix_len, prefix_string );
- free( prefix_string );
+ g_free( prefix_string );
offset += prefix_len;
}
prefix_string = g_malloc( item_len + 1 );
@@ -479,7 +479,7 @@ dissect_rtcp_sdes( tvbuff_t *tvb, int offset, proto_tree *tree,
/* strncpy( prefix_string, pd + offset, item_len ); */
prefix_string[ item_len] = 0;
proto_tree_add_string( sdes_item_tree, hf_rtcp_ssrc_text, tvb, offset, item_len, prefix_string );
- free( prefix_string );
+ g_free( prefix_string );
offset += item_len;
}