Code style issues: do net check NULL for free