summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJüri Valdmann <juri.valdmann@qt.io>2017-09-18 09:56:06 +0200
committerJüri Valdmann <juri.valdmann@qt.io>2017-09-18 09:26:58 +0000
commit37c7989d11d10eea10d15157338932cfae1e525c (patch)
treec17dedb193c295cf77081fe4b8616671d010b71e
parenta12a811026baa86d7d8e4728d893114c76feec20 (diff)
Replace use of cfree with free
Quote from Linux man-pages: This function should never be used. Use free(3) instead. Starting with version 2.26, it has been removed from glibc. Arch Linux has switched to glibc 2.26 now, so cfree(ptr) is no longer available. Since cfree(ptr) is equivalent to free(ptr) (even on SunOS?), this patch replaces it with free(ptr). Change-Id: I50859ecfe45c965a9477541b3b7644fcbcc330e2 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
-rw-r--r--src/core/api/qtbug-61521.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/api/qtbug-61521.cpp b/src/core/api/qtbug-61521.cpp
index 86d5998e..1dcc4cfa 100644
--- a/src/core/api/qtbug-61521.cpp
+++ b/src/core/api/qtbug-61521.cpp
@@ -100,7 +100,7 @@ SHIM_HIDDEN void* ShimCalloc(size_t n, size_t size) {
}
SHIM_HIDDEN void ShimCFree(void* ptr) {
- cfree(ptr);
+ free(ptr);
}
SHIM_HIDDEN void* ShimMemalign(size_t align, size_t s) {