Fix '1078414 Copy-paste error'

Signed-off-by: Gregory Petrosyan <gregory.petrosyan@gmail.com>
Document '1078404 1078405 Missing break in switch'

Signed-off-by: Gregory Petrosyan <gregory.petrosyan@gmail.com>
Document '1078403 Missing break in switch'

Signed-off-by: Gregory Petrosyan <gregory.petrosyan@gmail.com>
Fix '1078390 Resource leak'

Signed-off-by: Gregory Petrosyan <gregory.petrosyan@gmail.com>
Fix '1078389 Resource leak'

Signed-off-by: Gregory Petrosyan <gregory.petrosyan@gmail.com>
Fix '1078387 Resource leak'

Signed-off-by: Gregory Petrosyan <gregory.petrosyan@gmail.com>
Fix '1078402 Data race condition'

Signed-off-by: Gregory Petrosyan <gregory.petrosyan@gmail.com>
Fix '1078397 Dereference null return value'

Signed-off-by: Gregory Petrosyan <gregory.petrosyan@gmail.com>