]> git.ipfire.org Git - thirdparty/lxc.git/commit
coverity: fix leak in error case
authorDwight Engen <dwight.engen@oracle.com>
Fri, 3 May 2013 16:04:01 +0000 (12:04 -0400)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 3 May 2013 17:26:17 +0000 (12:26 -0500)
commit8950ee8ebfc9a7f34003f6892b5a7da6aef9fff9
tree7119ef500740cf2e0c234d4a7fcffd4076dd0198
parenta2eea3c1974d70bdef74a0af6a14ca3a6fa41704
coverity: fix leak in error case

Since lxc_execute() is available through the library and is exposed via
the API we cannot be sure the caller will immediately exit, so we should
take care to free the allocated memory.

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/execute.c