From 48548090beffdc189c9af4e5ab56975ffb6f7311 Mon Sep 17 00:00:00 2001 From: Learath2 Date: Tue, 13 Oct 2020 18:05:59 +0200 Subject: [PATCH] Fix 2 leaks in CServerBrowser --- src/engine/client/serverbrowser.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine/client/serverbrowser.cpp b/src/engine/client/serverbrowser.cpp index 793d5bce7..8ba9c6926 100644 --- a/src/engine/client/serverbrowser.cpp +++ b/src/engine/client/serverbrowser.cpp @@ -70,6 +70,12 @@ CServerBrowser::CServerBrowser() CServerBrowser::~CServerBrowser() { + if(m_ppServerlist) + free(m_ppServerlist); + + if(m_pSortedServerlist) + free(m_pSortedServerlist); + if(m_pDDNetInfo) json_value_free(m_pDDNetInfo); }