diff options
author | BALATON Zoltan | 2016-07-12 23:34:27 +0200 |
---|---|---|
committer | BALATON Zoltan | 2017-02-07 18:32:39 +0100 |
commit | 1728254f3a51b8b4d7de902dd53f12141085109c (patch) | |
tree | 286124ad1c242835c59522aba32141f4340c0988 /src/idevicerestore.c | |
parent | 00a9e576ebf0dec261c67644d6c7eba7ea9afd23 (diff) | |
download | idevicerestore-1728254f3a51b8b4d7de902dd53f12141085109c.tar.gz idevicerestore-1728254f3a51b8b4d7de902dd53f12141085109c.tar.bz2 |
Remove some unneded variables and conditionals and plug some potential memory leaks
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r-- | src/idevicerestore.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); |