aboutsummaryrefslogtreecommitdiffstats
path: root/text2pcap.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-09-05 19:12:31 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-09-05 19:12:31 +0000
commitf27f459195b1d5e5558967cb0da9fc0d514070af (patch)
tree7265fc13d2f77e13b47f27a76e89d40c787b841b /text2pcap.c
parent9fb5d05d21ea7fb60a3808235f059925c75e4e50 (diff)
Change malloc -> g_malloc and free -> g_free.
svn path=/trunk/; revision=38884
Diffstat (limited to 'text2pcap.c')
-rw-r--r--text2pcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/text2pcap.c b/text2pcap.c
index ad27341cf2..243600a878 100644
--- a/text2pcap.c
+++ b/text2pcap.c
@@ -1074,7 +1074,7 @@ parse_token (token_t token, char *str)
of s2, it means the matched part in tail is the ASCII dump
of the head byte. These matched should be rollback */
line_size = curr_offset-(int)(pkt_lnstart-packet_buf);
- s2 = (char*)malloc((line_size+1)/4+1);
+ s2 = (char*)g_malloc((line_size+1)/4+1);
/* gather the possible pattern */
for(i=0; i<(line_size+1)/4; i++) {
tmp_str[0] = pkt_lnstart[i*3];
@@ -1107,7 +1107,7 @@ parse_token (token_t token, char *str)
unwrite_bytes(line_size);
}
}
- free(s2);
+ g_free(s2);
break;
default:
break;