From 1728254f3a51b8b4d7de902dd53f12141085109c Mon Sep 17 00:00:00 2001 From: BALATON Zoltan Date: Tue, 12 Jul 2016 23:34:27 +0200 Subject: Remove some unneded variables and conditionals and plug some potential memory leaks --- src/idevicerestore.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/idevicerestore.c') diff --git a/src/idevicerestore.c b/src/idevicerestore.c index acf171d..01901d6 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -1740,10 +1740,8 @@ int personalize_component(const char *component_name, const unsigned char* compo memcpy(stitched_component, component_data, component_size); } } - - if (component_blob) - free(component_blob); } + free(component_blob); if (idevicerestore_keep_pers) { write_file(component_name, stitched_component, stitched_component_size); -- cgit v1.1-32-gdbae