diff options
| author | Xiyue Deng | 2013-04-05 01:25:39 -0700 |
|---|---|---|
| committer | Jack Nagel | 2013-04-06 15:52:52 -0500 |
| commit | e4c654e02f330683edcf7f923e7e51e7b0448f02 (patch) | |
| tree | 3bab531e9d4346002ab3fdafd3e1f1c62a4e917f /Library/Formula | |
| parent | b22d476499174ab2f15ad41015d262fcb41a3ccc (diff) | |
| download | homebrew-e4c654e02f330683edcf7f923e7e51e7b0448f02.tar.bz2 | |
p11-kit: fix freeing uninitialized memory error in test cases.
* Comment out free call in library uninit. The memory being freed may be
uninitialized. This could be a memory leak, but hard to verify without
working valgrind.
Closes #18983.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/p11-kit.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Formula/p11-kit.rb b/Library/Formula/p11-kit.rb index 26844ed98..657efff72 100644 --- a/Library/Formula/p11-kit.rb +++ b/Library/Formula/p11-kit.rb @@ -38,3 +38,14 @@ index 7df4be9..557d0c2 100644 CuAssertTrue (tc, rv == CKR_OK); CuAssertTrue (tc, module != NULL); +--- p11-kit-0.18.0/common/library.c.orig 2013-04-05 01:05:38.000000000 -0700 ++++ p11-kit-0.18.0/common/library.c 2013-04-05 01:09:55.000000000 -0700 +@@ -125,7 +125,7 @@ + uninit_common (); + + /* Some cleanup to pacify valgrind */ +- free (pthread_getspecific (thread_local)); ++ /*free (pthread_getspecific (thread_local));*/ + pthread_setspecific (thread_local, NULL); + + p11_message_storage = dont_store_message; |
