Schema validation against "maximum" and "minimum" can only take place on numbers and memory leaks

Found an issue with schema validation.
Validating this JSON:

{"id": 1, "type_id": null, "name": null}

against this schema:

{
"type":"object",
"properties":{
	"id":{"type": "integer", "minimum": 1},
	"type_id":{"type": ["integer", "null"], "minimum": 1},
	"name":{"type": ["string", "null"], "maxLength": 5},
	},
"additionalProperties" : false
}

fails on "type_id", when it shouldn’t.

Found also two memory leaks in regcomp() calls.

Best regards,
José Gonçalves