Explorar o código

Meilleur gestion memoire

Arthur Brandao %!s(int64=6) %!d(string=hai) anos
pai
achega
51ed15ef0e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Serveur/game.c

+ 1 - 0
Serveur/game.c

@@ -28,6 +28,7 @@ JsonArray* list_map(){
         add_array_string(ja, result[i]);
         free(result[i]);
     }
+    free(result);
     return ja;
 }