Close zip file at end of sr_session_file_check.

From patch sent to sigrok-devel by jerryxjtu.
This commit is contained in:
Martin Ling 2014-08-20 12:58:33 +01:00 committed by Bert Vermeulen
parent 3e27b177c4
commit aba57f3550
1 changed files with 5 additions and 0 deletions

View File

@ -94,6 +94,11 @@ SR_PRIV int sr_sessionfile_check(const char *filename)
return SR_ERR;
}
if ((ret = zip_close(archive)) == -1) {
sr_dbg("error closing zipfile: %s", zip_strerror(archive));
return SR_ERR;
}
return SR_OK;
}