COVERITY 14: free zcb_mapped if memory_map() fails.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2544 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
Angus Salkeld 2009-11-22 06:27:09 +00:00
parent 5f17683107
commit e5b94a352e

View File

@ -413,6 +413,7 @@ static inline int zcb_alloc (
size,
addr);
if (res == -1) {
free (zcb_mapped);
return (-1);
}