Skip to content

realpath() memory leak in restore.c #2026

@eriksjolund

Description

@eriksjolund

The result from realpath() is never deallocated.

bundle = realpath (".", NULL);

I noticed this when reading source code.


Quote from realpath() man page:

The caller should deallocate this buffer using free(3).
quote from
https://man7.org/linux/man-pages/man3/realpath.3.html

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