From 5add39f46c8323875fb56bc764a8ff627ad82f18 Mon Sep 17 00:00:00 2001 From: Fu Juntang <StrongTiger_001@163.com> Date: 星期五, 08 十月 2021 11:12:06 +0800 Subject: [PATCH] Adjust the free action independent of the return value from the function return. --- test/futex_demo.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/test/futex_demo.cpp b/test/futex_demo.cpp index d6887e8..2899862 100644 --- a/test/futex_demo.cpp +++ b/test/futex_demo.cpp @@ -19,11 +19,12 @@ #include <sys/syscall.h> #include <linux/futex.h> #include <sys/time.h> -#include "usg_common.h" #include <sys/mman.h> #include <sys/stat.h> /* For mode constants */ #include <fcntl.h> /* For O_* constants */ +#include "usg_common.h" + #define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \ } while (0) -- Gitblit v1.8.0