agnosticbin: Fix memory leak

Change-Id: I0a9b54df4a97796bc91944a70ea7e945a728382c