Added valgrind memory leak tests in testmem.sh for cli and netconf

This commit is contained in:
Olof hagsand 2019-02-18 16:05:51 +01:00
parent 055b1df80c
commit 286c2ec04f
6 changed files with 140 additions and 31 deletions

View file

@ -249,8 +249,6 @@ main(int argc, char **argv)
int printgen = 0;
int logclisyntax = 0;
int help = 0;
char *treename = NULL;
// int len;
int logdst = CLICON_LOG_STDERR;
char *restarg = NULL; /* what remains after options */
int dump_configfile_xml = 0;
@ -550,8 +548,6 @@ main(int argc, char **argv)
else
retval = 0;
done:
if (treename)
free(treename);
if (restarg)
free(restarg);
// Gets in your face if we log on stderr