- Fixed [clixon_proc can't start new process with PATH env #202](https://github.com/clicon/clixon/issues/202)
- Memory errors in tests
This commit is contained in:
parent
1af3a7bcfe
commit
172cfd69b3
7 changed files with 28 additions and 17 deletions
|
|
@ -322,7 +322,7 @@ clixon_proc_background(char **argv,
|
|||
}
|
||||
}
|
||||
#endif /* HAVE_SETNS */
|
||||
if (execv(argv[0], argv) < 0) {
|
||||
if (execvp(argv[0], argv) < 0) {
|
||||
clicon_err(OE_UNIX, errno, "execv");
|
||||
exit(1);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -447,7 +447,7 @@ ys_new(enum rfc_6020 keyw)
|
|||
/*! Free a single yang statement, dont remove children
|
||||
*
|
||||
* @param[in] ys Yang node to remove
|
||||
* @param[in] self Free own node
|
||||
* @param[in] self Free own node including child vector
|
||||
* @retval 0 OK
|
||||
* @retval -1 Error
|
||||
* @see ys_free
|
||||
|
|
@ -476,6 +476,8 @@ ys_free1(yang_stmt *ys,
|
|||
free(ys->ys_when_xpath);
|
||||
if (ys->ys_when_nsc)
|
||||
cvec_free(ys->ys_when_nsc);
|
||||
if (ys->ys_stmt)
|
||||
free(ys->ys_stmt);
|
||||
if (self)
|
||||
free(ys);
|
||||
return 0;
|
||||
|
|
@ -526,8 +528,6 @@ ys_free(yang_stmt *ys)
|
|||
if ((yc = ys->ys_stmt[i]) != NULL)
|
||||
ys_free(yc);
|
||||
}
|
||||
if (ys->ys_stmt)
|
||||
free(ys->ys_stmt);
|
||||
ys_free1(ys, 1);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue