s3-perfcount: update to use new DLIST macros
[samba.git] / source3 / modules / perfcount_test.c
index b72ac9f7b5c238a09d518822f5ee9f8bd991b376..f9ea817127b7b25fc03441687d7714b7bba5441f 100644 (file)
@@ -179,8 +179,7 @@ static void perfcount_test_dump_counters(void)
        for (i=0; i < 256; i++) {
               for (head = g_list[i]; head != NULL; head = head->next) {
                       perfcount_test_dump_counter(head, 0);
-                      head->prev = NULL;
-                      SAFE_FREE(head->prev);
+                      SAFE_FREE(DLIST_PREV(head));
               }
               SAFE_FREE(head);
        }