From f9afe974d71d79e92a9d03d2df46873318f68268 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 31 Jan 2008 21:58:50 +0000 Subject: [PATCH] duping method_type before using it as a data in the hash, since method_type is later freed git-svn-id: svn://svn.open-ils.org/ILS/trunk@8559 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/c-apps/oils_cstore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/c-apps/oils_cstore.c b/Open-ILS/src/c-apps/oils_cstore.c index 0b782a3c91..dbdb7ddb9a 100644 --- a/Open-ILS/src/c-apps/oils_cstore.c +++ b/Open-ILS/src/c-apps/oils_cstore.c @@ -213,7 +213,7 @@ int osrfAppInitialize() { free(_fm); osrfHashSet( method_meta, method, "methodname" ); - osrfHashSet( method_meta, method_type, "methodtype" ); + osrfHashSet( method_meta, strdup(method_type), "methodtype" ); int flags = 0; if (!(strcmp( method_type, "search" )) || !(strcmp( method_type, "id_list" ))) { -- 2.11.0