Avoid memory leak when sending RADIUS accounting start message failed
This commit is contained in:
1 parent
53ab3c27cd
commit
4bc24ba794
1 file changed
+1
-1
@@ -207,9 +207,9 @@ static void send_start(private_eap_radius_accounting_t *this, ike_sa_t *ike_sa)
|
||||
this->mutex->lock(this->mutex);
|
||||
entry = this->sessions->put(this->sessions, (void*)(uintptr_t)id, entry);
|
||||
this->mutex->unlock(this->mutex);
|
||||
free(entry);
|
||||
}
|
||||
message->destroy(message);
|
||||
free(entry);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user