Language: Python
Label: safe
CWE: CWE-401 \u2014 Missing Release of Memory after Effective Lifetime
The product does not sufficiently track and release allocated memory after it has been used, which slowly consumes remaining memory.

Code:
def all_tests():
    rc = do_test(proto_ver=4)
    if rc:
        return rc;
    rc = do_test(proto_ver=5)
    if rc:
        return rc;
    return 0