Skip to content

Commit

Permalink
memory leaks
Browse files Browse the repository at this point in the history
fix memory leaks
  • Loading branch information
Henrs committed Apr 20, 2018
1 parent 613b56c commit 94a81c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Measuable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ extension _Measurable {
let name = String(cString: property_getName(props.advanced(by: Int(i)).pointee))
propertyList.insert(name)
}
free(props)
}
count.deallocate()
return propertyList
}

Expand Down

0 comments on commit 94a81c7

Please sign in to comment.