summaryrefslogtreecommitdiffstats
path: root/eurephiadm
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2008-12-19 09:24:09 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2008-12-19 09:24:09 +0100
commit31854c5a01bac26f020e308aeaf665ba87a7277f (patch)
treebc179ad90759b8aae23428ab0ed266699577e36f /eurephiadm
parentab6718eddd141902857ca5da7fbc13bbb62b04ba (diff)
downloadeurephia-31854c5a01bac26f020e308aeaf665ba87a7277f.tar.gz
eurephia-31854c5a01bac26f020e308aeaf665ba87a7277f.tar.xz
eurephia-31854c5a01bac26f020e308aeaf665ba87a7277f.zip
Fixed more memory leaks and missing memory initialisation.
Diffstat (limited to 'eurephiadm')
-rw-r--r--eurephiadm/commands/users.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/eurephiadm/commands/users.c b/eurephiadm/commands/users.c
index 6853507..de1a010 100644
--- a/eurephiadm/commands/users.c
+++ b/eurephiadm/commands/users.c
@@ -522,6 +522,7 @@ int account_activation(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *
// Search and find the user which was requested
if( (user_xml = eDBadminGetUserInfo(ctx, USERINFO_user, srch_xml)) == NULL ) {
fprintf(stderr, "%s: User not found\n", MODULE);
+ xmlFreeDoc(srch_xml);
return 1;
}
xmlFreeDoc(srch_xml);
@@ -745,6 +746,7 @@ int add_user(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int a
(rc == 1 ? "User registered successfully" : "Failed to register user"));
memset(passwd, 0, strlen_nullsafe(passwd));
free_nullsafe(passwd);
+ xmlFreeDoc(user_xml);
return (rc != 1);
}