[TD_543] fix coverity scan, cid:267731

This commit is contained in:
Shengliang Guan 2020-06-08 09:01:52 +00:00
parent 5711ef3efd
commit 894ad481f4
1 changed files with 1 additions and 0 deletions

View File

@ -169,6 +169,7 @@ static void shellSourceFile(TAOS *con, char *fptr) {
if (f == NULL) {
fprintf(stderr, "ERROR: failed to open file %s\n", fname);
wordfree(&full_path);
free(cmd);
return;
}