summaryrefslogtreecommitdiffstats
path: root/eurephiadm/commands/usercerts.c
diff options
context:
space:
mode:
Diffstat (limited to 'eurephiadm/commands/usercerts.c')
-rw-r--r--eurephiadm/commands/usercerts.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/eurephiadm/commands/usercerts.c b/eurephiadm/commands/usercerts.c
index 553e16e..b0bbf34 100644
--- a/eurephiadm/commands/usercerts.c
+++ b/eurephiadm/commands/usercerts.c
@@ -1,7 +1,7 @@
/* usercerts.c -- eurephiadm usercerts command:
* Management of user account <-> certificate links
*
- * GPLv2 only - Copyright (C) 2008 - 2010
+ * GPLv2 only - Copyright (C) 2008 - 2012
* David Sommerseth <dazo@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or
@@ -200,14 +200,17 @@ int list_usercerts(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg,
case 'h':
display_usercerts_help('l');
+ xmlFreeDoc(srch_xml);
return 0;
default:
+ xmlFreeDoc(srch_xml);
return 1;
}
}
list_xml = eDBadminUserCertsLink(ctx, srch_xml);
+ xmlFreeDoc(srch_xml);
if( list_xml == NULL ) {
fprintf(stderr, "%s: Error retrieving user/certificate link list\n", MODULE);
return 1;
@@ -215,7 +218,6 @@ int list_usercerts(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg,
xslt_print_xmldoc(stdout, cfg, list_xml, "usercerts.xsl", xsltparams);
xmlFreeDoc(list_xml);
- xmlFreeDoc(srch_xml);
return 0;
}