Another exit path that needs to be cleaned up.
#if !TARGET_OS_IPHONE
exit_or_usage:
+ cleanup_openssl_refs();
digexit();
#endif /* if !TARGET_OS_IPHONE */
}
static bool
next_origin(dig_lookup_t *oldlookup);
-static void
-cleanup_openssl_refs(void);
-
static int
count_dots(char *string) {
char *s;
}
}
-static void
+void
cleanup_openssl_refs(void) {
if (tsigkey != NULL) {
debug("freeing TSIG key %p", tsigkey);
noreturn void
digexit(void);
+void
+cleanup_openssl_refs(void);
+
void
debug(const char *format, ...) ISC_FORMAT_PRINTF(1, 2);