Language: C
Label: safe
CWE: CWE-416 \u2014 Use After Free
Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code.

Code:
static void DTLS_LOCK(dtls_srtp *ds) {
    if (ds->base.grp_lock)
        pj_grp_lock_acquire(ds->base.grp_lock);
    else
        pj_lock_acquire(ds->ossl_lock);
}