summaryrefslogtreecommitdiffstats
path: root/eurephiadm/commands/lastlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'eurephiadm/commands/lastlog.c')
-rw-r--r--eurephiadm/commands/lastlog.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/eurephiadm/commands/lastlog.c b/eurephiadm/commands/lastlog.c
index b65f1be..c18fbbb 100644
--- a/eurephiadm/commands/lastlog.c
+++ b/eurephiadm/commands/lastlog.c
@@ -1,7 +1,7 @@
/* lastlog.c -- eurephiadm lastlog command:
* Queries the lastlog table
*
- * GPLv2 only - Copyright (C) 2009 - 2010
+ * GPLv2 only - Copyright (C) 2009 - 2012
* David Sommerseth <dazo@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or
@@ -136,6 +136,7 @@ int cmd_Lastlog(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, in
case 'h':
help_Lastlog();
+ xmlFreeDoc(srch_xml);
return 0;
case 'c':
@@ -182,6 +183,7 @@ int cmd_Lastlog(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, in
default:
fprintf(stderr, "%s: Invalid argument: %s\n", MODULE, argv[i-1]);
+ xmlFreeDoc(srch_xml);
return 1;
}
}