- Added an extended state plugin callback: ca_statedata2 with offset and limit parameters

- Fixed memory errors
This commit is contained in:
Olof hagsand 2021-09-02 12:35:48 +02:00
parent 28f58fb7d6
commit aaf9a89183
9 changed files with 121 additions and 114 deletions

View file

@ -987,6 +987,14 @@ cli_pagination(clicon_handle h,
}
if (xlen != window) /* Break if fewer elements than requested */
break;
if (xret){
xml_free(xret);
xret = NULL;
}
if (xvec){
free(xvec);
xvec = NULL;
}
}
retval = 0;
done:
@ -994,6 +1002,8 @@ cli_pagination(clicon_handle h,
free(xvec);
if (xret)
xml_free(xret);
if (nsc)
cvec_free(nsc);
if (cb)
cbuf_free(cb);
return retval;