free(writer->as);
}
+ // Unref all countries
+ if (writer->countries) {
+ for (unsigned int i = 0; i < writer->countries_count; i++) {
+ loc_country_unref(writer->countries[i]);
+ }
+ free(writer->countries);
+ }
+
// Release network tree
if (writer->networks)
loc_network_tree_unref(writer->networks);
goto END;
}
- DEBUG(writer->ctx, "Successfully generated signature of %lu bytes\n", *length);
+ DEBUG(writer->ctx, "Successfully generated signature of %zu bytes\n", *length);
r = 0;
// Dump signature