intel / intel/libva

Avoid call of “Xfree(NULL)”

Open
#845 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
784
Forks
314
PR merge metrics
No merged PRs in 30d

Description

:eyes: I find an implementation detail (like the following) suspicious.
https://github.com/intel/libva/blob/e4dc66b240d6d21e6546c9a21dbcfe455c8a6bff/va/x11/va_dri2.c#L194-L195

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.