From 269ea889883af417816e014f25def6b370305640 Mon Sep 17 00:00:00 2001 From: Shinichiro Oba Date: Thu, 29 Nov 2018 16:12:19 +0000 Subject: [PATCH 1/2] Fix a memory leak > Potential leak of memory pointed to by 'attributes' --- ReactiveObjC/extobjc/EXTRuntimeExtensions.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactiveObjC/extobjc/EXTRuntimeExtensions.m b/ReactiveObjC/extobjc/EXTRuntimeExtensions.m index 0e1a3f937..6a6e6f222 100644 --- a/ReactiveObjC/extobjc/EXTRuntimeExtensions.m +++ b/ReactiveObjC/extobjc/EXTRuntimeExtensions.m @@ -62,7 +62,7 @@ if (!next) { fprintf(stderr, "ERROR: Could not read class name in attribute string \"%s\" for property %s\n", attrString, property_getName(property)); - return NULL; + goto errorOut; } if (className != next) { From 96977401c428403f0afe8cdd8403770ea881cf8d Mon Sep 17 00:00:00 2001 From: Shinichiro Oba Date: Thu, 29 Nov 2018 16:13:15 +0000 Subject: [PATCH 2/2] Import the header from local --- ReactiveObjC/extobjc/EXTRuntimeExtensions.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactiveObjC/extobjc/EXTRuntimeExtensions.m b/ReactiveObjC/extobjc/EXTRuntimeExtensions.m index 6a6e6f222..99c10e980 100644 --- a/ReactiveObjC/extobjc/EXTRuntimeExtensions.m +++ b/ReactiveObjC/extobjc/EXTRuntimeExtensions.m @@ -7,7 +7,7 @@ // Released under the MIT license. // -#import +#import "EXTRuntimeExtensions.h" #import #import