Revert "* Added valgrind memory leak tests in testmem.sh for restconf"

String error
This reverts commit 6e63f0a77b.
This commit is contained in:
Olof hagsand 2019-02-20 16:19:07 +01:00
parent 5b6bdbfd3a
commit a73d2bd242
29 changed files with 131 additions and 193 deletions

View file

@ -224,6 +224,7 @@ json_str_escape_cdata(cbuf *cb,
char *str)
{
int retval = -1;
char *snew = NULL;
int i;
int esc = 0; /* cdata escape */
@ -260,8 +261,12 @@ json_str_escape_cdata(cbuf *cb,
cprintf(cb, "%c", str[i]);
break;
}
if ((snew = strdup(cbuf_get(cb))) ==NULL){
clicon_err(OE_XML, errno, "strdup");
goto done;
}
retval = 0;
// done:
done:
return retval;
}