Added missing calls for FreeBuffer().