Changeset fe085b9 for lib/format_pcap.c


Ignore:
Timestamp:
10/18/16 15:29:29 (4 years ago)
Author:
GitHub <noreply@…>
Children:
2aafabe
Parents:
000726a
git-author:
EaseTheWorld <easetheworld@…> (10/18/16 15:29:29)
git-committer:
GitHub <noreply@…> (10/18/16 15:29:29)
Message:

Fix leak in format_pcap.c

INPUT.pcap was never closed because pcap_pause_input is not called for pcap file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcap.c

    r2e91590 rfe085b9  
    363363static int pcap_fin_input(libtrace_t *libtrace)
    364364{
     365        if (INPUT.pcap) {
     366                pcap_close(INPUT.pcap);
     367                INPUT.pcap=NULL;
     368        }
    365369        free(libtrace->format_data);
    366370        return 0; /* success */
Note: See TracChangeset for help on using the changeset viewer.