瀏覽代碼

vccd: fix a wrong free

intirain 4 年之前
父節點
當前提交
4ea8742f9a
共有 3 個文件被更改,包括 3 次插入 和 4 次删除
  1. 1 1
      Makefile
  2. 2 2
      include/vcc/version.h
  3. 0 1
      main.c

+ 1 - 1
Makefile

@@ -1,6 +1,6 @@
 VCCD_MAJOR 		= 1
 VCCD_MINOR 		= 2
-VCCD_PATCH 		= 1
+VCCD_PATCH 		= 2
 VCCD_STR 		= -release 
 
 VCCD_COMPILE_TIME 	= $(shell date)

+ 2 - 2
include/vcc/version.h

@@ -1,2 +1,2 @@
-#define VCCD_VERSION "vccd 1.2.1 Sat Mar 19 21:04:43 CST 2022 root"
-#define VCCD_SYMVER "vccd 1.2.1 Sat Mar 19 21:04:43 CST 2022 root"
+#define VCCD_VERSION "vccd 1.2.2 Sun Mar 20 11:41:39 CST 2022 root"
+#define VCCD_SYMVER "vccd 1.2.2 Sun Mar 20 11:41:39 CST 2022 root"

+ 0 - 1
main.c

@@ -214,7 +214,6 @@ int main(int argc, const char **argv) {
 					vcc_close_connection(fds[i].fd);
 
 					fds[i].fd = -1;
-					free(buf);
 
 					continue;
 				}