Skip to content

Avoid call of “Xfree(NULL)” #845

Open
@elfring

Description

@elfring

👀 I find an implementation detail (like the following) suspicious.

libva/va/x11/va_dri2.c

Lines 194 to 195 in e4dc66b

if (*deviceName == NULL) {
Xfree(*driverName);

How do you think about to avoid passing null pointers to resource release functions? 🤔

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