| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Licensed Materials - Property of IBM | 3 * Licensed Materials - Property of IBM |
| 4 * | 4 * |
| 5 * trousers - An open source TCG Software Stack | 5 * trousers - An open source TCG Software Stack |
| 6 * | 6 * |
| 7 * (C) Copyright International Business Machines Corp. 2004-2007 | 7 * (C) Copyright International Business Machines Corp. 2004-2007 |
| 8 * | 8 * |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 *randomSize = 0; | 54 *randomSize = 0; |
| 55 free(dec); | 55 free(dec); |
| 56 LogError("malloc of %u bytes failed", *randomSize); | 56 LogError("malloc of %u bytes failed", *randomSize); |
| 57 return TSPERR(TSS_E_OUTOFMEMORY); | 57 return TSPERR(TSS_E_OUTOFMEMORY); |
| 58 } | 58 } |
| 59 Trspi_UnloadBlob(&offset, *randomSize, dec, *random); | 59 Trspi_UnloadBlob(&offset, *randomSize, dec, *random); |
| 60 } | 60 } |
| 61 | 61 |
| 62 Trspi_UnloadBlob_UINT32(&offset, archiveSize, dec); | 62 Trspi_UnloadBlob_UINT32(&offset, archiveSize, dec); |
| 63 if ((*archive = malloc(*archiveSize)) == NULL) { | 63 if ((*archive = malloc(*archiveSize)) == NULL) { |
| 64 » » free(random); | 64 » » free(*random); |
| 65 *random = NULL; | 65 *random = NULL; |
| 66 *randomSize = 0; | 66 *randomSize = 0; |
| 67 free(dec); | 67 free(dec); |
| 68 LogError("malloc of %u bytes failed", *archiveSize); | 68 LogError("malloc of %u bytes failed", *archiveSize); |
| 69 *archiveSize = 0; | 69 *archiveSize = 0; |
| 70 return TSPERR(TSS_E_OUTOFMEMORY); | 70 return TSPERR(TSS_E_OUTOFMEMORY); |
| 71 } | 71 } |
| 72 Trspi_UnloadBlob(&offset, *archiveSize, dec, *archive); | 72 Trspi_UnloadBlob(&offset, *archiveSize, dec, *archive); |
| 73 free(dec); | 73 free(dec); |
| 74 | 74 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 return result; | 188 return result; |
| 189 | 189 |
| 190 offset = 0; | 190 offset = 0; |
| 191 Trspi_UnloadBlob_DIGEST(&offset, dec, checksum); | 191 Trspi_UnloadBlob_DIGEST(&offset, dec, checksum); |
| 192 free(dec); | 192 free(dec); |
| 193 | 193 |
| 194 return result; | 194 return result; |
| 195 } | 195 } |
| 196 #endif | 196 #endif |
| 197 | 197 |
| OLD | NEW |