fixing another memory leak
authorTobias Brunner <tobias@strongswan.org>
Mon, 7 Apr 2008 09:36:52 +0000 (09:36 -0000)
committerTobias Brunner <tobias@strongswan.org>
Mon, 7 Apr 2008 09:36:52 +0000 (09:36 -0000)
src/charon/sa/mediation_manager.c

index eac62a8..3bc6ede 100644 (file)
@@ -241,6 +241,7 @@ static void update_sa_id(private_mediation_manager_t *this, identification_t *pe
        {
                job_t *job = (job_t*)mediation_callback_job_create(requester, peer_id);
                charon->processor->queue_job(charon->processor, job);
+               requester->destroy(requester);
        }
        
        pthread_mutex_unlock(&(this->mutex));