]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Don't call regfree() if regcomp() fails
authorJim Fehlig <jfehlig@suse.com>
Wed, 4 Sep 2013 21:58:27 +0000 (15:58 -0600)
committerJim Fehlig <jfehlig@suse.com>
Thu, 5 Sep 2013 16:53:24 +0000 (10:53 -0600)
commit8818376889bcd86e2b2efd336e97627f1bc4710f
tree875e89ac07b20d1da5c55e710c8a5b743980703e
parent12509c799902555e895578d688234d063e0b6e7d
Don't call regfree() if regcomp() fails

POSIX states that the preg parameter to regcomp() is undefined on
failure, so no need to call regfree() in these cases.

http://pubs.opengroup.org/onlinepubs/009695399/functions/regcomp.html

See also a discussion on the libvirt dev list

https://www.redhat.com/archives/libvir-list/2013-September/msg00262.html
src/storage/storage_backend.c
src/storage/storage_backend_logical.c
src/xen/xen_hypervisor.c