memleaks, cli-generate leafref

This commit is contained in:
Olof hagsand 2017-06-06 22:09:37 +02:00
parent 07fe90b4c4
commit 91f91fe526
7 changed files with 70 additions and 14 deletions

View file

@ -934,7 +934,7 @@ api_path_fmt2api_path(char *api_path_fmt,
char *strenc=NULL;
/* Sanity check */
#if 1
#if 0
j = 0; /* Count % */
for (i=0; i<strlen(api_path_fmt); i++)
if (api_path_fmt[i] == '%')
@ -1021,7 +1021,7 @@ api_path_fmt2xpath(char *api_path_fmt,
int skip = 0;
/* Sanity check: count '%' */
#if 1
#if 0
j = 0; /* Count % */
for (i=0; i<strlen(api_path_fmt); i++)
if (api_path_fmt[i] == '%')