summaryrefslogtreecommitdiffstats
path: root/eurephiadm/eurephiadm.c
diff options
context:
space:
mode:
Diffstat (limited to 'eurephiadm/eurephiadm.c')
-rw-r--r--eurephiadm/eurephiadm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/eurephiadm/eurephiadm.c b/eurephiadm/eurephiadm.c
index 10cf70e..518f8a5 100644
--- a/eurephiadm/eurephiadm.c
+++ b/eurephiadm/eurephiadm.c
@@ -232,7 +232,7 @@ int eurephia_ConnectDB(eurephiaCTX *ctx, const char *argstr) {
eDBlink_close(ctx);
return 0;
}
- free_nullsafe(cp);
+ free_nullsafe(ctx, cp);
return 1;
}
@@ -467,7 +467,7 @@ int main(int argc, char **argv) {
char *logout_argv[] = { sesskey_file };
rc = cmd_Logout(ctx, NULL, cfg, 0, logout_argv);
remove_session_file(ctx);
- free_nullsafe(sesskey_file);
+ free_nullsafe(ctx, sesskey_file);
goto exit;
}
@@ -484,7 +484,7 @@ int main(int argc, char **argv) {
}
}
}
- free_nullsafe(sesskey_file);
+ free_nullsafe(ctx, sesskey_file);
// If we have an open session now, call the requested command
@@ -500,7 +500,7 @@ int main(int argc, char **argv) {
rc = call_fnc->function(ctx, session, cfg, cmdargc, cmdargv);
argstr = args2string(cmdargc, cmdargv);
eurephia_log(ctx, LOG_INFO, 0, "Command: %s (result: %i)", argstr, rc);
- free_nullsafe(argstr);
+ free_nullsafe(ctx, argstr);
// Remove session info from memory
eDBfree_session(ctx, session);