Browse Source

ckdb - replace 2 frees with FREENULLs - tidier :)

master
kanoi 10 years ago
parent
commit
d368869423
  1. 5
      src/ckdb.c
  2. 2
      src/ckdb.h

5
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)

2
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__

Loading…
Cancel
Save