# HG changeset patch
# User Aruna Matheswaran <[email protected]>
# Date 1500457328 -19800
# Wed Jul 19 15:12:08 2017 +0530
# Branch stable
# Node ID a1336339534466b86ec62ed3ddc2695c794d7b58
# Parent adbcc90bdef36b50a091deb5b0d0ad77debfbee7
threadpool: fix memory leak
diff -r adbcc90bdef3 -r a13363395344 source/common/threadpool.cpp
--- a/source/common/threadpool.cpp Thu Jul 13 16:50:18 2017 +0530
+++ b/source/common/threadpool.cpp Wed Jul 19 15:12:08 2017 +0530
@@ -454,6 +454,7 @@
if ((nodeMaskPerPool[node] >> j) & 1)
len += sprintf(nodesstr + len, ",%d", j);
x265_log(p, X265_LOG_INFO, "Thread pool %d using %d threads on
numa nodes %s\n", i, numThreads, nodesstr + 1);
+ delete[] nodesstr;
}
else
x265_log(p, X265_LOG_INFO, "Thread pool created using %d
threads\n", numThreads);
# HG changeset patch
# User Aruna Matheswaran <[email protected]>
# Date 1500457328 -19800
# Wed Jul 19 15:12:08 2017 +0530
# Branch stable
# Node ID a1336339534466b86ec62ed3ddc2695c794d7b58
# Parent adbcc90bdef36b50a091deb5b0d0ad77debfbee7
threadpool: fix memory leak
diff -r adbcc90bdef3 -r a13363395344 source/common/threadpool.cpp
--- a/source/common/threadpool.cpp Thu Jul 13 16:50:18 2017 +0530
+++ b/source/common/threadpool.cpp Wed Jul 19 15:12:08 2017 +0530
@@ -454,6 +454,7 @@
if ((nodeMaskPerPool[node] >> j) & 1)
len += sprintf(nodesstr + len, ",%d", j);
x265_log(p, X265_LOG_INFO, "Thread pool %d using %d threads on numa nodes %s\n", i, numThreads, nodesstr + 1);
+ delete[] nodesstr;
}
else
x265_log(p, X265_LOG_INFO, "Thread pool created using %d threads\n", numThreads);
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel