Skip to content

Fixed a possible memory leak

Stefano babic requested to merge github/fork/lunixoid/master into master

Created by: lunixoid

I'm a member of the Pinguem.ru competition on finding errors in open source projects. A bug, found using PVS-Studio: swupdate/parser/parser.c 256 err V773 The function was exited without releasing the 'partition' pointer. A memory leak is possible. swupdate/parser/parser.c 435 err V773 The function was exited without releasing the 'image' pointer. A memory leak is possible. swupdate/parser/parser.c 429 warn V600 Consider inspecting the condition. The 'seek_str' pointer is always not equal to NULL. swupdate/core/cpio_utils.c 201 err V593 Consider reviewing the expression of the 'A = B < C' kind. The expression is calculated as following: 'A = (B < C)'. swupdate/corelib/installer.c 452 warn V600 Consider inspecting the condition. The 'swcfg->globals.postupdatecmd' pointer is always not equal to NULL.

Merge request reports