/*
- * Copyright (c) 2008, 2009, 2010 Nicira Networks.
+ * Copyright (c) 2008, 2009, 2010 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include "leak-checker.h"
#include <inttypes.h>
#include "backtrace.h"
-
-#define THIS_MODULE VLM_leak_checker
#include "vlog.h"
+VLOG_DEFINE_THIS_MODULE(leak_checker);
+
#ifndef HAVE_MALLOC_HOOKS
void
leak_checker_start(const char *file_name OVS_UNUSED)
}
set_hooks(&libc_hooks);
+ log_callers("free(%p)", p);
free(p);
get_hooks(&libc_hooks);
- log_callers("free(%p)", p);
-
reset_hooks();
}