Pointless if because free can work with NULL/0/nullptr.