From 868e336f8337e14e0288ac1d3c9fd89bee6d1961 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Sun, 17 Nov 2013 02:40:48 +0100 Subject: Fix possible memory corruption by ensuring client pointers NULL'd after free --- src/property_list_service.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/property_list_service.c') diff --git a/src/property_list_service.c b/src/property_list_service.c index b8d4b93..3f2e6c3 100644 --- a/src/property_list_service.c +++ b/src/property_list_service.c @@ -101,7 +101,10 @@ property_list_service_error_t property_list_service_client_free(property_list_se return PROPERTY_LIST_SERVICE_E_INVALID_ARG; property_list_service_error_t err = service_to_property_list_service_error(service_client_free(client->parent)); + free(client); + client = NULL; + return err; } -- cgit v1.1-32-gdbae