소스 검색

memory leak fix

eihrul 20 년 전
부모
커밋
940a220d6a
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      peer.c

+ 3 - 0
peer.c

@@ -292,6 +292,9 @@ enet_peer_reset_incoming_commands (ENetList * queue)
             enet_packet_destroy (incomingCommand -> packet);
        }
 
+       if (incomingCommand -> fragments != NULL)
+         enet_free (incomingCommand -> fragments);
+
        enet_free (incomingCommand);
     }
 }