[open-ils-commits] r11549 - trunk/Open-ILS/src/c-apps
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Dec 14 21:59:29 EST 2008
Author: miker
Date: 2008-12-14 21:59:28 -0500 (Sun, 14 Dec 2008)
New Revision: 11549
Modified:
trunk/Open-ILS/src/c-apps/oils_cstore.c
Log:
plug that leak
Modified: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c 2008-12-14 21:50:48 UTC (rev 11548)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c 2008-12-15 02:59:28 UTC (rev 11549)
@@ -806,7 +806,9 @@
//XXX turn this into a user id
char* auth = jsonObjectToSimpleString( jsonObjectGetIndex( ctx->params, 0 ) );
- jsonObject* user = oilsUtilsQuickReq("open-ils.auth","open-ils.auth.session.retrieve", jsonNewObject(auth));
+ jsonObject* auth_object = jsonNewObject(auth);
+ jsonObject* user = oilsUtilsQuickReq("open-ils.auth","open-ils.auth.session.retrieve", auth_object);
+ jsonObjectFree(auth_object);
if (!user) {
free(auth);
More information about the open-ils-commits
mailing list