mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
tt/mini_isam: Coverity (memory corruption, moderate)
This commit is contained in:
parent
6f45dde569
commit
4c6e66ceb8
1 changed files with 4 additions and 2 deletions
|
@ -203,14 +203,16 @@ _amrewcurr(isfhandle, record, reclen, curpos, recnum, errcode)
|
|||
_amseterrcode(errcode, err);
|
||||
goto ERROR;
|
||||
}
|
||||
_bytearr_free(curpos);
|
||||
*curpos = newcurpos;
|
||||
|
||||
/*
|
||||
* This takes care of new record position if the physical order is in use.
|
||||
*/
|
||||
*recnum = crp->recno;
|
||||
|
||||
_bytearr_free(curpos);
|
||||
crp = NULL; /* was aliased to freed curpos->data */
|
||||
*curpos = newcurpos;
|
||||
|
||||
_amseterrcode(errcode, ISOK);
|
||||
_issignals_mask();
|
||||
_isdisk_commit();
|
||||
|
|
Loading…
Reference in a new issue