From: Ben Pfaff Date: Thu, 4 Apr 2013 16:26:03 +0000 (-0500) Subject: RELIABILITY: Fix memory leaks and dereferences of uninitialized pointers. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=412577e8dc5b7bea03d7a3fff5b9cc0325903654;hp=412577e8dc5b7bea03d7a3fff5b9cc0325903654;p=pspp RELIABILITY: Fix memory leaks and dereferences of uninitialized pointers. The 'total' struct and 'm' array in struct reliability were allocated once per case group, but freed exactly once. If there were no case groups, this caused a null dereference. If there was more than one case group, this caused a memory leak. This commit fixes both problems. This commit also fixes a related crash on bad syntax due to dereferencing a null pointer in reliability_destroy(). Bug #38660. Reported by William Rogers. ---