Get rid of all these extra non-NULL checks

Kind of useless as free() does this kind of check anyway.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>