sha1_file.c: add a function to release all packs