Changeset: 1869a227c049 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/1869a227c049
Modified Files:
        sql/storage/store.c
Branch: Mar2025
Log Message:

Fix coverity CID 1469519, CID 1469545 issues.


diffs (23 lines):

diff --git a/sql/storage/store.c b/sql/storage/store.c
--- a/sql/storage/store.c
+++ b/sql/storage/store.c
@@ -3161,8 +3161,6 @@ store_hot_snapshot(sql_trans *tx, str ta
        int do_remove = 0;
        int dir_fd = -1;
        stream *tar_stream = NULL;
-       buffer *plan_buf = NULL;
-       stream *plan_stream = NULL;
        sqlstore *store = tx->store;
 
        if (!store->logger_api.get_snapshot_files) {
@@ -3258,10 +3256,6 @@ end:
                close(dir_fd);
        if (tar_stream)
                close_stream(tar_stream);
-       if (plan_stream)
-               close_stream(plan_stream);
-       if (plan_buf)
-               buffer_destroy(plan_buf);
        if (do_remove)
                (void) MT_remove(tmppath);      // Best effort, ignore the 
result
        GDKfree(tmppath);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to