Skip to content

Commit 87adbc6

Browse files
authored
Merge pull request #8 from cnwangsiyu/memory
fix memory problem
2 parents ce68f89 + e8c4725 commit 87adbc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NetDiag/QNNTcpPing.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ - (void)run {
146146
__block NSDate *startDate = begin;
147147
dispatch_async(dispatch_get_main_queue(), ^(void) {
148148
_complete([self buildResult:code ip:ip durations:intervals loss:loss count:index totalTime:[[NSDate date] timeIntervalSinceDate:startDate] * 1000]);
149+
free(intervals);
149150
});
150151
}
151-
free(intervals);
152152
}
153153

154154
- (QNNTcpPingResult *)buildResult:(NSInteger)code

0 commit comments

Comments
 (0)