Skip to content

Tiny memory leak #6

@alistairking

Description

@alistairking

I think there is a tiny memory leak when this if statement: https://github.com/CAIDA/libipmeta/blob/master/lib/providers/ipmeta_provider_netacq_edge.c#L1364
evaluates to false (i.e., when the record should be ignored). In this case fields in the tmp structure that are strdup'd are lost. These fields should be manually free'd, or perhaps expose the utility function at:
https://github.com/CAIDA/libipmeta/blob/master/lib/ipmeta_provider.c#L72)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions