From 6e36a641ff911326f4ebb09c797c41ea15e3ecd3 Mon Sep 17 00:00:00 2001 From: Marc Cromme Date: Wed, 11 Apr 2007 11:22:35 +0000 Subject: [PATCH] freeing XML doc pointer after usage, otherwise we have a memory leak --- src/settings.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 1.7.10.4