diff options
author | Martin Szulecki | 2013-11-17 02:40:48 +0100 |
---|---|---|
committer | Martin Szulecki | 2013-11-30 20:13:59 +0100 |
commit | 868e336f8337e14e0288ac1d3c9fd89bee6d1961 (patch) | |
tree | d4ca282bc122791f61709afbd2445870426c4045 /src/property_list_service.c | |
parent | 5d429dddc5ed442ae4699ab34c21b35bacef456b (diff) | |
download | libimobiledevice-868e336f8337e14e0288ac1d3c9fd89bee6d1961.tar.gz libimobiledevice-868e336f8337e14e0288ac1d3c9fd89bee6d1961.tar.bz2 |
Fix possible memory corruption by ensuring client pointers NULL'd after free
Diffstat (limited to 'src/property_list_service.c')
-rw-r--r-- | src/property_list_service.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |