Skip to content

Unnecessary checks for null pointers before free() #73

@tlunttil

Description

@tlunttil

In at least aux.c and grid.c there are in several places free(ptr) calls inside if (ptr!=NULL) guards. This isn't needed, because according to C standard free(ptr) is safe even if ptr is a null pointer.

Ifs don't do any harm either, so it's a question of what style one likes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions