Resolving CPPCHECK warnings.
As a part of this MR the following will be handled based on cppcechk results.
-
Memory leak -
Possible null pointer deref -
Uninitialized variable -
Undefined behaviour shifting -
Printf formatting issues -
Opposite Condition -> dead code -
Wrong Scanf Nb Args