Parcourir la source

EvilPortal: Fix weird free()'s

Willy-JL il y a 2 ans
Parent
commit
bb585dc998
1 fichiers modifiés avec 0 ajouts et 4 suppressions
  1. 0 4
      evil_portal/helpers/evil_portal_storage.c

+ 0 - 4
evil_portal/helpers/evil_portal_storage.c

@@ -34,8 +34,6 @@ void evil_portal_read_index_html(void* context) {
                 buf_ptr += now_read;
             }
             *buf_ptr = '\0';
-            buf_ptr++;
-            free(buf_ptr);
         }
         storage_file_close(index_html);
         storage_file_free(index_html);
@@ -96,8 +94,6 @@ void evil_portal_read_ap_name(void* context) {
                 buf_ptr += now_read;
             }
             *buf_ptr = '\0';
-            buf_ptr++;
-            free(buf_ptr);
         }
         storage_file_close(ap_name);
         storage_file_free(ap_name);