Changeset f0d19d4 for lib/format_wag.c


Ignore:
Timestamp:
02/22/06 18:02:59 (16 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
c2d5f23
Parents:
c1db742
Message:

Make valgrind happier by free'ing memory that we should have been!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_wag.c

    rc1db742 rf0d19d4  
    203203static int wag_fin_input(struct libtrace_t *libtrace) {
    204204        close(INPUT.fd);
     205        free(libtrace->format_data);
    205206        return 0;
    206207}
     
    208209static int wtf_fin_input(struct libtrace_t *libtrace) {
    209210        LIBTRACE_CLOSE(INPUT.file);
     211        free(libtrace->format_data);
    210212        return 0;
    211213}
     
    213215static int wtf_fin_output(struct libtrace_out_t *libtrace) {
    214216        LIBTRACE_CLOSE(OUTPUT.file);
     217        free(libtrace->format_data);
    215218        return 0;
    216219}
Note: See TracChangeset for help on using the changeset viewer.