Is it a static variable? If so, that’s completely normal. It would be your responsibility to clean it up after the PIE session ends.
Take a look at this thread where we discussed something similar.
In short: find a suitable point in the game lifecycle and clean up all your statics.