X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftinfo%2Fhashed_db.c;h=1b3eb97dd92e3f6675fa1aa1f2fc1d9cc9cadf14;hp=730458503d6944ddb8ae66906749bb7c6c36445f;hb=a0bb9c404174926bf131a5989a0524a6eecd09eb;hpb=c002077d39fa24ddfe33793eb22942d9518da6fd diff --git a/ncurses/tinfo/hashed_db.c b/ncurses/tinfo/hashed_db.c index 73045850..1b3eb97d 100644 --- a/ncurses/tinfo/hashed_db.c +++ b/ncurses/tinfo/hashed_db.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2006-2008,2011 Free Software Foundation, Inc. * + * Copyright (c) 2006-2011,2013 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -36,7 +36,7 @@ #if USE_HASHED_DB -MODULE_ID("$Id: hashed_db.c,v 1.15 2011/08/13 21:08:08 tom Exp $") +MODULE_ID("$Id: hashed_db.c,v 1.16 2013/02/16 21:50:03 tom Exp $") #if HASHED_DB_API >= 2 static DBC *cursor; @@ -105,6 +105,8 @@ make_connection(DB * db, const char *path, bool modify) if (p->path != 0) { p->next = connections; connections = p; + } else { + free(p); } } }