Missing free in sha256 hash verification
[oweals/opkg-lede.git] / libopkg / opkg_install.c
index 8ced15aa36222a323726a2735909d2589e5cf144..aae72be6cb0909e3c675468d3c7e1fdf9d165782 100644 (file)
@@ -897,6 +897,7 @@ int opkg_install_pkg(opkg_conf_t *conf, pkg_t *pkg, int from_upgrade)
               free(file_sha256);
               return OPKG_INSTALL_ERR_SHA256;
          }
               free(file_sha256);
               return OPKG_INSTALL_ERR_SHA256;
          }
+         free(file_sha256);
      }
 #endif
 
      }
 #endif