Security

Fixed memory leak
Fixed security subsystem