Skip to content

Commit 5f2817f

Browse files
authored
Merge pull request ReactiveCocoa#149 from bricklife/fix-memory-leak
Fix memory leak of `attributes`
2 parents e46eef2 + 9697740 commit 5f2817f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ReactiveObjC/extobjc/EXTRuntimeExtensions.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// Released under the MIT license.
88
//
99

10-
#import <ReactiveObjC/EXTRuntimeExtensions.h>
10+
#import "EXTRuntimeExtensions.h"
1111

1212
#import <ctype.h>
1313
#import <Foundation/Foundation.h>
@@ -62,7 +62,7 @@
6262

6363
if (!next) {
6464
fprintf(stderr, "ERROR: Could not read class name in attribute string \"%s\" for property %s\n", attrString, property_getName(property));
65-
return NULL;
65+
goto errorOut;
6666
}
6767

6868
if (className != next) {

0 commit comments

Comments
 (0)