# HG changeset patch # User Goffi # Date 1448912455 -3600 # Node ID 292f9c2712f2e60cdfb8a469f5cfd7297650b92b # Parent 280890460822400eefcb36a714082da836700abd core (memory): fixed bad memory cleaning on asyncDeleteProfile diff -r 280890460822 -r 292f9c2712f2 src/memory/memory.py --- a/src/memory/memory.py Mon Nov 30 16:49:47 2015 +0100 +++ b/src/memory/memory.py Mon Nov 30 20:40:55 2015 +0100 @@ -504,8 +504,15 @@ To be used for direct calls only (not through the bridge). @return: a Deferred instance """ - self.auth_sessions.profileDelUnique(name) - return self.params.asyncDeleteProfile(name, force) + def cleanMemory(dummy): + self.auth_sessions.profileDelUnique(name) + try: + del self._entities_cache[name] + except KeyError: + pass + d = self.params.asyncDeleteProfile(name, force) + d.addCallback(cleanMemory) + return d ## History ##