X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/adns/blobdiff_plain/3034e24e162760492333ad8427044bad2abb4502..c002fd49f5cf1f40c6bf36ee1b39a038d085f330:/src/query.c diff --git a/src/query.c b/src/query.c index b3ddca8..2ae3a5b 100644 --- a/src/query.c +++ b/src/query.c @@ -13,7 +13,7 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) + * the Free Software Foundation; either version 3, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, @@ -22,8 +22,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * along with this program; if not, write to the Free Software Foundation. */ #include "internal.h" @@ -428,6 +427,7 @@ void adns__free_interim(adns_query qu, void *p) { LIST_UNLINK(qu->allocations, an); free(an); qu->interim_allocd -= sz; + assert(!qu->interim_allocd >= 0); } void *adns__alloc_mine(adns_query qu, size_t sz) {