Fix global leak

Signed-off-by: Eli Skeggs <eskeggs@globesherpa.com>