return ISC_R_INVALIDARG;
if (*r) {
-#if defined (ALLOCATION_DEBUGGING)
- abort ("%s(%d): reference store into non-null pointer!",
- file, line);
+#if defined (POINTER_DEBUG)
+ log_error ("%s(%d): reference store into non-null pointer!",
+ file, line);
+ abort ();
#else
return ISC_R_INVALIDARG;
#endif
return ISC_R_INVALIDARG;
if (!*h) {
-#if defined (ALLOCATION_DEBUGGING)
- abort ("%s(%d): dereference of null pointer!", file, line);
+#if defined (POINTER_DEBUG)
+ log_error ("%s(%d): dereference of null pointer!", file, line);
+ abort ();
#else
return ISC_R_INVALIDARG;
#endif
}
if ((*h) -> refcnt <= 0) {
-#if defined (ALLOCATION_DEBUGGING)
- abort ("%s(%d): dereference of pointer with refcnt of zero!",
- file, line);
+#if defined (POINTER_DEBUG)
+ log_error ("%s(%d): dereference of pointer with refcnt of zero!",
+ file, line);
+#if defined (DEBUG_RC_HISTORY)
+ dump_rc_history ();
+#endif
+ abort ();
#else
+ *h = 0;
return ISC_R_INVALIDARG;
#endif
}
return ISC_R_INVALIDARG;
if (*r) {
-#if defined (ALLOCATION_DEBUGGING)
- abort ("%s: reference store into non-null pointer!", name);
+#if defined (POINTER_DEBUG)
+ log_error ("%s(%d): reference store into non-null pointer!",
+ file, line);
+ abort ();
#else
return ISC_R_INVALIDARG;
#endif
return ISC_R_INVALIDARG;
if (!*h) {
-#if defined (ALLOCATION_DEBUGGING)
- abort ("%s(%d): dereference of null pointer!", file, line);
+#if defined (POINTER_DEBUG)
+ log_error ("%s(%d): dereference of null pointer!", file, line);
+ abort ();
#else
return ISC_R_INVALIDARG;
#endif
}
if ((*h) -> refcnt <= 0) {
-#if defined (ALLOCATION_DEBUGGING)
- abort ("%s(%d): dereference of pointer with refcnt of zero!",
- file, line);
+#if defined (POINTER_DEBUG)
+ log_error ("%s(%d): dereference of pointer with refcnt of zero!",
+ file, line);
+#if defined (DEBUG_RC_HISTORY)
+ dump_rc_history ();
+#endif
+ abort ();
#else
+ *h = 0;
return ISC_R_INVALIDARG;
#endif
}
+
--(*h) -> refcnt;
rc_register (file, line, h, *h, (*h) -> refcnt);
if ((*h) -> refcnt == 0)
return ISC_R_INVALIDARG;
if (*r) {
-#if defined (ALLOCATION_DEBUGGING)
- abort ("%s: reference store into non-null pointer!", name);
+#if defined (POINTER_DEBUG)
+ log_error ("%s(%d): reference store into non-null pointer!", file, line);
+ abort ();
#else
return ISC_R_INVALIDARG;
#endif
return ISC_R_INVALIDARG;
if (!*h) {
-#if defined (ALLOCATION_DEBUGGING)
- abort ("%s(%d): dereference of null pointer!", file, line);
+#if defined (POINTER_DEBUG)
+ log_error ("%s(%d): dereference of null pointer!", file, line);
+ abort ();
#else
return ISC_R_INVALIDARG;
#endif
}
if ((*h) -> refcnt <= 0) {
-#if defined (ALLOCATION_DEBUGGING)
- abort ("%s(%d): dereference of pointer with refcnt of zero!",
- file, line);
+#if defined (POINTER_DEBUG)
+ log_error ("%s(%d): dereference of pointer with refcnt of zero!",
+ file, line);
+#if defined (DEBUG_RC_HISTORY)
+ dump_rc_history ();
+#endif
+ abort ();
#else
+ *h = 0;
return ISC_R_INVALIDARG;
#endif
}
return ISC_R_INVALIDARG;
if (*r) {
-#if defined (ALLOCATION_DEBUGGING)
- abort ("%s: reference store into non-null pointer!", name);
+#if defined (POINTER_DEBUG)
+ log_error ("%s(%d): reference store into non-null pointer!", file, line);
+ abort ();
#else
return ISC_R_INVALIDARG;
#endif
return ISC_R_INVALIDARG;
if (!*h) {
-#if defined (ALLOCATION_DEBUGGING)
- abort ("%s(%d): dereference of null pointer!", file, line);
+#if defined (POINTER_DEBUG)
+ log_error ("%s(%d): dereference of null pointer!", file, line);
+ abort ();
#else
return ISC_R_INVALIDARG;
#endif
}
if ((*h) -> refcnt <= 0) {
-#if defined (ALLOCATION_DEBUGGING)
- abort ("%s(%d): dereference of pointer with refcnt of zero!",
- file, line);
+#if defined (POINTER_DEBUG)
+ log_error ("%s(%d): dereference of pointer with refcnt of zero!",
+ file, line);
+#if defined (DEBUG_RC_HISTORY)
+ dump_rc_history ();
+#endif
+ abort ();
#else
+ *h = 0;
return ISC_R_INVALIDARG;
#endif
}
-
+
--((*h) -> refcnt);
rc_register (file, line, h, *h, (*h) -> refcnt);
if ((*h) -> refcnt <= 0 ) {
return ISC_R_INVALIDARG;
if (*r) {
-#if defined (ALLOCATION_DEBUGGING)
- abort ("%s(%d): reference store into non-null pointer!",
- file, line);
+#if defined (POINTER_DEBUG)
+ log_error ("%s(%d): reference store into non-null pointer!",
+ file, line);
+ abort ();
#else
return ISC_R_INVALIDARG;
#endif
return ISC_R_INVALIDARG;
if (!*h) {
-#if defined (ALLOCATION_DEBUGGING)
- abort ("%s(%d): dereference of null pointer!", file, line);
+#if defined (POINTER_DEBUG)
+ log_error ("%s(%d): dereference of null pointer!", file, line);
+ abort ();
#else
return ISC_R_INVALIDARG;
#endif
}
if ((*h) -> refcnt <= 0) {
-#if defined (ALLOCATION_DEBUGGING)
- abort ("%s(%d): dereference of pointer with refcnt of zero!",
- file, line);
+#if defined (POINTER_DEBUG)
+ log_error ("%s(%d): dereference of pointer with refcnt of zero!",
+ file, line);
+#if defined (DEBUG_RC_HISTORY)
+ dump_rc_history ();
+#endif
+ abort ();
#else
+ *h = 0;
return ISC_R_INVALIDARG;
#endif
}
--((*h) -> refcnt);
rc_register (file, line, h, *h, (*h) -> refcnt);
- if ((*h) -> refcnt <= 0 ) {
+ if ((*h) -> refcnt == 0) {
if ((*h) -> name)
omapi_data_string_dereference (&(*h) -> name,
file, line);