Просмотр исходного кода

Forgot to free two other structures

DocSystem 1 год назад
Родитель
Сommit
5fb5b7b6c5
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      scenes/metroflip_scene_calypso.c

+ 6 - 0
scenes/metroflip_scene_calypso.c

@@ -462,6 +462,9 @@ static NfcCommand metroflip_scene_navigo_poller_callback(NfcGenericEvent event,
                     card->navigo->holder.commercial_id =
                         bit_slice_to_dec(environment_bit_representation, start, end);
 
+                    // Free the calypso structure
+                    free_calypso_structure(IntercodeEnvHolderStructure);
+
                     // Select app for contracts
                     error = select_new_app(
                         0x20, 0x20, tx_buffer, rx_buffer, iso14443_4b_poller, app, &stage);
@@ -1040,6 +1043,9 @@ static NfcCommand metroflip_scene_navigo_poller_callback(NfcGenericEvent event,
                     card->opus->holder.commercial_id =
                         bit_slice_to_dec(environment_bit_representation, start, end);
 
+                    // Free the calypso structure
+                    free_calypso_structure(OpusEnvHolderStructure);
+
                     // Select app for contracts
                     error = select_new_app(
                         0x20, 0x20, tx_buffer, rx_buffer, iso14443_4b_poller, app, &stage);