Fixed the memory leak.
Fixed the memory leak.

Reported-by: Scott McClaugherty <8e7c5f3edf627752a626365ddad308cf01055c6e@gmail.com>
Signed-off-by: Alastair Lynn <4665d361aaf271b139147017031ea99df777ca5a@gmail.com>

adam000/Apollo,adam000/Apollo,adam000/Apollo