Skip to content

Commit

Permalink
Note when we clean up requests on exit
Browse files Browse the repository at this point in the history
So we can tell what's going on.  But only do this when using -M,
so that normal exits don't have 100's of "cleaning up" messages
  • Loading branch information
alandekok committed Feb 18, 2014
1 parent 09620a0 commit 3f9a21b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/process.c
Expand Up @@ -4313,6 +4313,12 @@ static int request_delete_cb(UNUSED void *ctx, void *data)
request->in_request_hash = false;
if (request->ev) fr_event_delete(el, &request->ev);

if (mainconfig.memory_report) {
RDEBUG2("Cleaning up request packet ID %u with timestamp +%d",
request->packet->id,
(unsigned int) (request->timestamp - fr_start_time));
}

request_free(&request);

/*
Expand Down

0 comments on commit 3f9a21b

Please sign in to comment.