nsswitch: cppcheck: Fix memleakOnRealloc errors
authorNoel Power <noel.power@suse.com>
Wed, 22 May 2019 11:09:41 +0000 (11:09 +0000)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 4 Jun 2019 22:13:07 +0000 (22:13 +0000)
commitf3f79a267ee656f22df01e8a7bb9d4db64e78781
tree317784e206967269296f171310657fcc742f2379
parent9c7113a418ce169b486f86238643e2d03112410b
nsswitch: cppcheck: Fix memleakOnRealloc errors

Fixes the following errors

nsswitch/nsstest.c:192: error: memleakOnRealloc: Common realloc mistake: 'buf' nulled but not freed upon failure <--[cppcheck]
nsswitch/nsstest.c:230: error: memleakOnRealloc: Common realloc mistake: 'buf' nulled but not freed upon failure <--[cppcheck]
nsswitch/nsstest.c:269: error: memleakOnRealloc: Common realloc mistake: 'buf' nulled but not freed upon failure <--[cppcheck]

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
nsswitch/nsstest.c