Skip to content

Commit fc4db8f

Browse files
authored
fix memory leak for protocol_copyPropertyList (#680)
* fix memory leak for protocol_copyPropertyList
1 parent b143a7f commit fc4db8f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

MJExtension.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "MJExtension"
3-
s.version = "3.0.16"
3+
s.version = "3.0.17"
44
s.ios.deployment_target = '8.0'
55
s.osx.deployment_target = '10.8'
66
s.summary = "A fast and convenient conversion between JSON and model"

MJExtension/MJFoundation.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ + (BOOL)isFromNSObjectProtocolProperty:(NSString *)propertyName
6161
}
6262
}
6363
objectProtocolPropertyNames = [propertyNames copy];
64+
free(propertyList);
6465
});
6566

6667
return [objectProtocolPropertyNames containsObject:propertyName];

0 commit comments

Comments
 (0)