Преглед изворни кода

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
Angus Salkeld пре 16 година
родитељ
комит
e5b94a352e
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      exec/coroipcs.c

+ 1 - 0
exec/coroipcs.c

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