Hardening/leak in assoc update test

### Description
Fixed a few leaks in association discovery.