void avro_schema_decref(avro_schema_t schema) { if (schema && schema->refcount != (unsigned int)-1 && --schema->refcount == 0) { avro_schema_free(schema); } }
int avro_schema_decref(avro_schema_t schema) { if (schema && avro_refcount_dec(&schema->refcount)) { avro_schema_free(schema); return 0; } return 1; }