Changeset f0d19d4 for lib/fifo.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/fifo.c

    r3d4d52d rf0d19d4  
    8080        assert(size > 0);
    8181
    82         if (tracefifo_stat_buffer == 0)
    83                 tracefifo_stat_buffer = (char *)malloc(513);
    8482        fifo->length = size;
    8583
     
    179177        char *scan = 0;
    180178        assert(fifo);
     179
     180        if (tracefifo_stat_buffer == 0)
     181                tracefifo_stat_buffer = (char *)malloc(513);
    181182
    182183        bzero(tracefifo_stat_buffer,513);
Note: See TracChangeset for help on using the changeset viewer.