441bd9fe6c
Add return checks, initialization and clean redundant memory operations fix 1: check return value of 'setsockopt' for error fix 2: check return value of 'PtrInfo' for error fix 3: move 'tool_names' instead of copying fix 4: call 'munmap' for 'va' only once fix 5: use 'ssize' for possible return values of -1 (err) fix 6: add missing initialization in constructors fix 7: add initialization for some scalars and pointers Change-Id: I07d90e36d4e1fe48c4de4f44e18083e5ed4c5fbc Signed-off-by: Apurv Mishra <apurv.mishra@amd.com>