소스 검색

Merge trunk revision 2544:
r2544 | asalkeld | 2009-11-21 23:27:09 -0700 (Sat, 21 Nov 2009) | 3 lines

COVERITY 14: free zcb_mapped if memory_map() fails.




git-svn-id: http://svn.fedorahosted.org/svn/corosync/branches/flatiron@2599 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 16 년 전
부모
커밋
0ec0394581
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);
 	}