1239070Sae/*- 2239070Sae * Copyright (c) 2012 Andrey V. Elsukov <ae@FreeBSD.org> 3239070Sae * All rights reserved. 4239070Sae * 5239070Sae * Redistribution and use in source and binary forms, with or without 6239070Sae * modification, are permitted provided that the following conditions 7239070Sae * are met: 8239070Sae * 1. Redistributions of source code must retain the above copyright 9239070Sae * notice, this list of conditions and the following disclaimer. 10239070Sae * 2. Redistributions in binary form must reproduce the above copyright 11239070Sae * notice, this list of conditions and the following disclaimer in the 12239070Sae * documentation and/or other materials provided with the distribution. 13239070Sae * 14239070Sae * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15239070Sae * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16239070Sae * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17239070Sae * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18239070Sae * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19239070Sae * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20239070Sae * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21239070Sae * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22239070Sae * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23239070Sae * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24239070Sae * SUCH DAMAGE. 25239070Sae */ 26239070Sae 27239070Sae#include <sys/cdefs.h> 28239070Sae__FBSDID("$FreeBSD$"); 29239070Sae 30239070Sae#include <stdlib.h> 31239070Sae 32239070Saevoid* 33239070SaeMalloc(size_t size, const char *file, int line) 34239070Sae{ 35239070Sae 36239070Sae return (malloc(size)); 37239070Sae} 38239070Sae 39239070Saevoid 40239070SaeFree(void *ptr, const char *file, int line) 41239070Sae{ 42239070Sae 43239070Sae return (free(ptr)); 44239070Sae} 45