[open-ils-commits] r11607 - trunk/Open-ILS/src/c-apps
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Dec 17 15:25:21 EST 2008
Author: miker
Date: 2008-12-17 15:25:17 -0500 (Wed, 17 Dec 2008)
New Revision: 11607
Modified:
trunk/Open-ILS/src/c-apps/oils_cstore.c
Log:
clone the object instead of serializing and then parsing
Modified: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c 2008-12-17 20:24:04 UTC (rev 11606)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c 2008-12-17 20:25:17 UTC (rev 11607)
@@ -1459,6 +1459,7 @@
osrfHashGet(meta, "fieldmapper"),
id
);
+ free(id);
jsonObject* fake_params = jsonNewObjectType(JSON_ARRAY);
jsonObjectPush(fake_params, jsonNewObjectType(JSON_HASH));
@@ -1466,10 +1467,9 @@
jsonObjectSetKey(
jsonObjectGetIndex(fake_params, 0),
osrfHashGet(meta, "primarykey"),
- jsonParseString(id)
+ jsonObjectClone(jsonObjectGetIndex(ctx->params, id_pos))
);
- free(id);
if (order_hash) jsonObjectPush(fake_params, jsonObjectClone(order_hash) );
More information about the open-ils-commits
mailing list