• Janos Follath's avatar
    Add safety check to sample mutex implementation · 5437a75b
    Janos Follath authored
    Due to inconsistent freeing strategy in pkparse.c the sample mutex
    implementation in threading.c could lead to undefined behaviour by
    destroying the same mutex several times.
    
    This fix prevents mutexes from being destroyed several times in the
    sample threading implementation.
    5437a75b