Close zip file at end of sr_session_file_check.
From patch sent to sigrok-devel by jerryxjtu.
This commit is contained in:
parent
3e27b177c4
commit
aba57f3550
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue