diff --git a/src/ckdb.c b/src/ckdb.c index b9ef4458..992622c2 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -3022,8 +3022,7 @@ static bool reload_line(PGconn *conn, char *filename, uint64_t count, char *buf) (char *)__func__, inet_default, &cd, trf_root); - if (ans) - free(ans); + FREENULL(ans); break; default: // Force this switch to be updated if new cmds are added @@ -3292,7 +3291,7 @@ static void process_queued(PGconn *conn, K_ITEM *wq_item) &(workqueue->now), workqueue->by, workqueue->code, workqueue->inet, &(workqueue->cd), workqueue->trf_root); - free(ans); + FREENULL(ans); } if (last_buf) diff --git a/src/ckdb.h b/src/ckdb.h index c40f37b3..c0a9d9ed 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -55,7 +55,7 @@ #define DB_VLOCK "1" #define DB_VERSION "1.0.0" -#define CKDB_VERSION DB_VERSION"-1.048" +#define CKDB_VERSION DB_VERSION"-1.049" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__