From: Marc Cromme Date: Wed, 11 Apr 2007 11:22:35 +0000 (+0000) Subject: freeing XML doc pointer after usage, otherwise we have a memory leak X-Git-Tag: PAZPAR2.1.0.0~326 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=6e36a641ff911326f4ebb09c797c41ea15e3ecd3;p=pazpar2-moved-to-github.git freeing XML doc pointer after usage, otherwise we have a memory leak --- diff --git a/src/settings.c b/src/settings.c index ea84e06..ba913db 100644 --- a/src/settings.c +++ b/src/settings.c @@ -1,4 +1,4 @@ -/* $Id: settings.c,v 1.11 2007-04-11 02:14:15 quinn Exp $ +/* $Id: settings.c,v 1.12 2007-04-11 11:22:35 marc Exp $ Copyright (c) 2006-2007, Index Data. This file is part of Pazpar2. @@ -215,6 +215,8 @@ static void read_settings_file(const char *path, xmlFree(valuea); xmlFree(usera); xmlFree(targeta); + + xmlFreeDoc(doc); } // Recursively read files in a directory structure, calling