summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugin/eurephia.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/eurephia.c b/plugin/eurephia.c
index 3451e8c..fad7117 100644
--- a/plugin/eurephia.c
+++ b/plugin/eurephia.c
@@ -687,6 +687,7 @@ int eurephia_learn_address(eurephiaCTX *ctx, const char *mode, const char *clien
strncpy(req.rule_destination, fwdest, sizeof(req.rule_destination));
strncpy(req.goto_destination, fwprofile, sizeof(req.goto_destination));
eFW_UpdateFirewall(ctx, &req);
+ free_nullsafe(ctx, fwprofile);
}
}
eDBfree_session(ctx, session);
@@ -715,6 +716,7 @@ int eurephia_learn_address(eurephiaCTX *ctx, const char *mode, const char *clien
strncpy(req.rule_destination, fwdest, sizeof(req.rule_destination));
strncpy(req.goto_destination, fwprofile, sizeof(req.goto_destination));
eFW_UpdateFirewall(ctx, &req);
+ free_nullsafe(ctx, fwprofile);
}
}
ret = eDBdestroy_session(ctx, session);