commit | fcd168ef31b309c18f7df229932a825d516a5a57 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue Feb 27 09:16:21 2024 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Feb 27 09:16:21 2024 +0100 |
tree | b3508c0b4bf84a243566dae2670ffd9f35f6df0f | |
parent | e6943a0a72ee96381c665e93679b61fc3f847c30 [diff] |
log BUGFIX memory leak
diff --git a/src/log.c b/src/log.c index 2c5093d..45ead66 100644 --- a/src/log.c +++ b/src/log.c
@@ -641,10 +641,10 @@ e = ly_err_last(ctx); vecode = e->vecode; } + free_strs = 0; if (log_store(ctx, level, err, vecode, msg, data_path, schema_path, line, apptag ? strdup(apptag) : NULL)) { goto cleanup; } - free_strs = 0; } /* if we are only storing errors internally, never print the message (yet) */