Changeset 02cbc14 for lib


Ignore:
Timestamp:
09/29/15 10:17:59 (6 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, 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:
e63d80d
Parents:
f6366a7
Message:

Fix memory leak in linked_list data struct

Also remove relative reference to libtrace.h inside linked_list.h, as
this won't work too well when the header is installed.

Location:
lib/data-struct
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/data-struct/linked_list.c

    r03aca91 r02cbc14  
    119119        if (ret) {
    120120                memcpy(item, n->data, l->element_size);
     121                free(n->data);
    121122                free(n);
    122123        }
     
    150151        if (ret) {
    151152                memcpy(item, n->data, l->element_size);
     153                free(n->data);
    152154                free(n);
    153155        }
  • lib/data-struct/linked_list.h

    rcb39d35 r02cbc14  
    1 #include "../libtrace.h"
     1#include "libtrace.h"
    22
    33#ifndef LIBTRACE_LIST_H
Note: See TracChangeset for help on using the changeset viewer.