newlib/doc/makedoc.c: Fix memory leak identified by Coverity.

This commit is contained in:
Joel Sherrill 2021-06-17 16:27:49 -05:00
parent 59584ff16b
commit 609f5a51c6
1 changed files with 2 additions and 1 deletions

View File

@ -1278,7 +1278,8 @@ compile (char *string)
}
}
return(ret);
free(word);
return(ret);
}