Fix Coverity IDs 879 and 880 (RESOURCE_LEAK, REVERSE_INULL)