desktop/source/lib/init.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 22a79927eec282b65fe71fbdcb9fa2810137b17c Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Wed Oct 13 23:05:55 2021 +0200 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Thu Oct 14 08:41:21 2021 +0200 Fix memory leak Change-Id: Ib9d98fa2cb14bb8feaf53941c5b7b18e21c33c13 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123516 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 156176ba023d..306b6d417d9d 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -5893,7 +5893,7 @@ static char* lo_getFilterTypes(LibreOfficeKit* pThis) } } - return strdup(aJson.extractData()); + return aJson.extractData(); } static void lo_setOptionalFeatures(LibreOfficeKit* pThis, unsigned long long const features)