11/**
2- * Copyright 2020-2023 Comcast Cable Communications Management, LLC
2+ * Copyright 2020-2025 Comcast Cable Communications Management, LLC
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -964,7 +964,7 @@ Sec_Result SecCipher_ProcessOpaqueWithMap(Sec_CipherHandle* cipherHandle, SEC_BY
964964 out_buffer .context .svp .offset = 0 ;
965965 out_buffer .context .svp .buffer = get_svp_buffer (cipherHandle -> processorHandle , * opaqueBufferHandle );
966966 if (out_buffer .context .svp .buffer == INVALID_HANDLE ) {
967- free (subsample_lengths );
967+ SEC_FREE (subsample_lengths );
968968 SecOpaqueBuffer_Free (* opaqueBufferHandle );
969969 * opaqueBufferHandle = NULL ;
970970 * bytesWritten = 0 ;
@@ -989,7 +989,7 @@ Sec_Result SecCipher_ProcessOpaqueWithMap(Sec_CipherHandle* cipherHandle, SEC_BY
989989 sample .in = & in_buffer ;
990990
991991 sa_status status = sa_invoke (cipherHandle -> processorHandle , SA_PROCESS_COMMON_ENCRYPTION , (size_t ) 1 , & sample );
992- free (subsample_lengths );
992+ SEC_FREE (subsample_lengths );
993993 if (status != SA_STATUS_OK ) {
994994 SecOpaqueBuffer_Free (* opaqueBufferHandle );
995995 * opaqueBufferHandle = NULL ;
@@ -1058,7 +1058,7 @@ Sec_Result SecCipher_ProcessOpaqueWithMapAndPattern(Sec_CipherHandle* cipherHand
10581058 out_buffer .context .svp .offset = 0 ;
10591059 out_buffer .context .svp .buffer = get_svp_buffer (cipherHandle -> processorHandle , * opaqueBufferHandle );
10601060 if (out_buffer .context .svp .buffer == INVALID_HANDLE ) {
1061- free (subsample_lengths );
1061+ SEC_FREE (subsample_lengths );
10621062 SecOpaqueBuffer_Free (* opaqueBufferHandle );
10631063 * opaqueBufferHandle = NULL ;
10641064 * bytesWritten = 0 ;
@@ -1083,7 +1083,7 @@ Sec_Result SecCipher_ProcessOpaqueWithMapAndPattern(Sec_CipherHandle* cipherHand
10831083 sample .in = & in_buffer ;
10841084
10851085 sa_status status = sa_invoke (cipherHandle -> processorHandle , SA_PROCESS_COMMON_ENCRYPTION , (size_t ) 1 , & sample );
1086- free (subsample_lengths );
1086+ SEC_FREE (subsample_lengths );
10871087 if (status != SA_STATUS_OK ) {
10881088 SecOpaqueBuffer_Free (* opaqueBufferHandle );
10891089 * opaqueBufferHandle = NULL ;
0 commit comments