From 4bf6000aed420a5787ae7ff3ea3c4f98dcb98ab7 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 10 Sep 2009 15:31:55 +0200 Subject: [PATCH] Release NMEM when config cant be read --- src/pazpar2_config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pazpar2_config.c b/src/pazpar2_config.c index 197b696..9456f86 100644 --- a/src/pazpar2_config.c +++ b/src/pazpar2_config.c @@ -886,6 +886,7 @@ struct conf_config *config_create(const char *fname, int verbose) if (!doc) { yaz_log(YLOG_FATAL, "Failed to read %s", fname); + nmem_destroy(nmem); return 0; } -- 1.7.10.4