From b2509f002b4eeb3361560ba643b3f8c0a0061537 Mon Sep 17 00:00:00 2001 From: Bernhard Miklautz Date: Thu, 6 Sep 2012 12:58:36 +0200 Subject: [PATCH] utils/pcap: Don't allocate memory for data in pcap_get_next_record_header --- libfreerdp/utils/pcap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libfreerdp/utils/pcap.c b/libfreerdp/utils/pcap.c index 905905b7a..b49a4b34f 100644 --- a/libfreerdp/utils/pcap.c +++ b/libfreerdp/utils/pcap.c @@ -136,7 +136,6 @@ boolean pcap_get_next_record_header(rdpPcap* pcap, pcap_record* record) pcap_read_record_header(pcap, &record->header); record->length = record->header.incl_len; - record->data = xmalloc(record->length); return true; }