cJSON: update to 1.7.13.
This commit is contained in:
parent
ce4c199ab7
commit
c408d3badf
|
@ -1,24 +0,0 @@
|
|||
From 7b65bd348da0411f2d6db12f21f7562e7286416c Mon Sep 17 00:00:00 2001
|
||||
From: Alanscut <wp_scut@163.com>
|
||||
Date: Thu, 5 Dec 2019 11:05:07 +0800
|
||||
Subject: [PATCH] fix memory leak mentioned in issue 414
|
||||
|
||||
---
|
||||
cJSON_Utils.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git cJSON_Utils.c cJSON_Utils.c
|
||||
index 7df4db2..b890d17 100644
|
||||
--- cJSON_Utils.c
|
||||
+++ cJSON_Utils.c
|
||||
@@ -216,6 +216,7 @@ CJSON_PUBLIC(char *) cJSONUtils_FindPointerFromObjectTo(const cJSON * const obje
|
||||
if (child_index > ULONG_MAX)
|
||||
{
|
||||
cJSON_free(target_pointer);
|
||||
+ cJSON_free(full_pointer);
|
||||
return NULL;
|
||||
}
|
||||
sprintf((char*)full_pointer, "/%lu%s", (unsigned long)child_index, target_pointer); /* /<array_index><path> */
|
||||
--
|
||||
2.24.0
|
||||
|
|
@ -1,14 +1,14 @@
|
|||
# Template file for 'cJSON'
|
||||
pkgname=cJSON
|
||||
version=1.7.12
|
||||
revision=2
|
||||
version=1.7.13
|
||||
revision=1
|
||||
build_style=cmake
|
||||
short_desc="Ultralightweight JSON parser in ANSI C"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="MIT"
|
||||
homepage="https://github.com/DaveGamble/cJSON"
|
||||
distfiles="https://github.com/DaveGamble/cJSON/archive/v${version}.tar.gz"
|
||||
checksum=760687665ab41a5cff9c40b1053c19572bcdaadef1194e5cba1b5e6f824686e7
|
||||
checksum=d4e77a38f540f2c37f55758f2666655314f1f51c716fea5f279659940efdcf04
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
|
|
Loading…
Reference in New Issue