restconf bugs and increased restconf testing

This commit is contained in:
Olof hagsand 2017-11-19 12:40:32 +01:00
parent 496d676ad3
commit 8b6bb6ff50
5 changed files with 39 additions and 32 deletions

View file

@ -988,8 +988,10 @@ xpath_each(cxobj *xcur,
int i;
if (xprev == NULL){
if (vec1) // XXX
free(vec1); // XXX
if (vec1) {
free(vec1);
vec1 = NULL;
}
vec1len = 0;
if (xpath_choice(xcur, xpath, 0, &vec1, &vec1len) < 0)
goto done;