From: erickson Date: Thu, 31 Jan 2008 21:58:50 +0000 (+0000) Subject: duping method_type before using it as a data in the hash, since method_type is later... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f9afe974d71d79e92a9d03d2df46873318f68268;p=Evergreen.git 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 --- 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" ))) {