Fixed memory leak for dispatch_semaphore
Merge pull request #5 from jeffh/master

Fixed memory leak