From e5b94a352ee07fe7dc614325061b8e595e1cf51f Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Sun, 22 Nov 2009 06:27:09 +0000 Subject: [PATCH] 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 --- exec/coroipcs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/exec/coroipcs.c b/exec/coroipcs.c index 21042a75..065a3551 100644 --- a/exec/coroipcs.c +++ b/exec/coroipcs.c @@ -413,6 +413,7 @@ static inline int zcb_alloc ( size, addr); if (res == -1) { + free (zcb_mapped); return (-1); }