From 09d76605f5e8a74b9d3499e5c25bd17381d76f03 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Sat, 3 Jan 2015 18:42:28 -0500 Subject: [PATCH] Fix memleak in Mob::TemporaryPets --- zone/aa.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zone/aa.cpp b/zone/aa.cpp index f5da4c284..059d42cbb 100644 --- a/zone/aa.cpp +++ b/zone/aa.cpp @@ -606,6 +606,9 @@ void Mob::TemporaryPets(uint16 spell_id, Mob *targ, const char *name_override, u //the target of these swarm pets will take offense to being cast on... if(targ != nullptr) targ->AddToHateList(this, 1, 0); + + // The other pointers we make are handled elsewhere. + delete made_npc; } void Mob::TypesTemporaryPets(uint32 typesid, Mob *targ, const char *name_override, uint32 duration_override, bool followme, bool sticktarg) {