to_free = ee;
ee = fr_dlist_remove(&list->head, ee);
if (talloc_free(to_free) < 0) {
- fr_strerror_printf_push("atexit handler failed %p/%p func=%p, uctx=%p (alloced %s:%u)",
+ fr_strerror_printf_push("atexit handler failed %p/%p func=%p, uctx=%p"
+#ifndef NDEBUG
+ " (alloced %s:%u)",
+#endif
list, to_free,
- to_free->func, to_free->uctx, to_free->file, to_free->line);
+ to_free->func, to_free->uctx
+#ifndef NDEBUG
+ , to_free->file, to_free->line
+#endif
+ );
return -1;
}
}
to_free = e;
e = fr_dlist_remove(&fr_atexit_global->head, e);
if (talloc_free(to_free) < 0) {
- fr_strerror_printf_push("atexit handler failed %p/%p func=%p, uctx=%p (alloced %s:%u)",
+ fr_strerror_printf_push("atexit handler failed %p/%p func=%p, uctx=%p"
+#ifndef NDEBUG
+ " (alloced %s:%u)",
+#endif
fr_atexit_global, to_free,
- to_free->func, to_free->uctx, to_free->file, to_free->line);
+ to_free->func, to_free->uctx
+#ifndef NDEBUG
+ , to_free->file, to_free->line
+#endif
+ );
return -1;
}
}
to_free = e;
e = fr_dlist_remove(&fr_atexit_global->head, e);
if (talloc_free(to_free) < 0) {
- fr_strerror_printf_push("atexit handler failed %p/%p func=%p, uctx=%p (alloced %s:%u)",
+ fr_strerror_printf_push("atexit handler failed %p/%p func=%p, uctx=%p"
+#ifndef NDEBUG
+ " (alloced %s:%u)",
+#endif
fr_atexit_global, to_free,
- to_free->func, to_free->uctx, to_free->file, to_free->line);
+ to_free->func, to_free->uctx
+#ifndef NDEBUG
+ , to_free->file, to_free->line
+#endif
+ );
return -1;
}
}
to_free = ee;
ee = fr_dlist_remove(&list->head, ee);
if (talloc_free(to_free) < 0) {
- fr_strerror_printf_push("atexit handler failed %p/%p func=%p, uctx=%p (alloced %s:%u)",
+ fr_strerror_printf_push("atexit handler failed %p/%p func=%p, uctx=%p"
+#ifndef NDEBUG
+ " (alloced %s:%u)",
+#endif
list, to_free,
- to_free->func, to_free->uctx, to_free->file, to_free->line);
+ to_free->func, to_free->uctx
+#ifndef NDEBUG
+ , to_free->file, to_free->line
+#endif
+ );
return -1;
}
}