소스 검색

Fix leak in error path in nss encryption.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2857 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 16 년 전
부모
커밋
d209f7bb27
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      exec/totemudp.c

+ 2 - 1
exec/totemudp.c

@@ -499,7 +499,8 @@ static int encrypt_and_sign_nss (
 		log_printf(instance->totemudp_log_level_security,
 			"Failure to set up PKCS11 param (err %d)\n",
 			PR_GetError());
-		goto out;
+		free (inbuf);
+		return (-1);
 	}
 
 	/*