]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: Compile regular expression where it is used
authorJim Fehlig <jfehlig@suse.com>
Wed, 4 Sep 2013 22:14:30 +0000 (16:14 -0600)
committerJim Fehlig <jfehlig@suse.com>
Thu, 5 Sep 2013 16:55:17 +0000 (10:55 -0600)
commit4e0ba0bd05769124976ceda2ad8881be1ff19afe
treebbc32f2046f465ee81c12d69758c8b9c97d0dbee
parent8818376889bcd86e2b2efd336e97627f1bc4710f
libxl: Compile regular expression where it is used

The regular expression used to determine guest capabilities
was compiled in libxlCapsInitHost() but used in libxlCapsInitGuests().
Move compilation to libxlCapsInitGuests() where it is used, and free
the compiled regex after use.  Ensure not to free the regex if
compilation fails.
src/libxl/libxl_conf.c