Browse Source

ckdb - remove compile warning

master
kanoi 10 years ago
parent
commit
0e2a690e97
  1. 10
      src/ckdb.c

10
src/ckdb.c

@ -1240,7 +1240,7 @@ static enum cmd_values breakdown(K_TREE **trf_root, K_STORE **trf_store,
char reply[1024] = ""; char reply[1024] = "";
TRANSFER *transfer; TRANSFER *transfer;
K_TREE_CTX ctx[1]; K_TREE_CTX ctx[1];
K_ITEM *item; K_ITEM *item = NULL;
char *cmdptr, *idptr, *next, *eq, *end, *was; char *cmdptr, *idptr, *next, *eq, *end, *was;
char *data = NULL, *tmp; char *data = NULL, *tmp;
bool noid = false; bool noid = false;
@ -1462,9 +1462,11 @@ static enum cmd_values breakdown(K_TREE **trf_root, K_STORE **trf_store,
JSON_END, tmp = safe_text(next)); JSON_END, tmp = safe_text(next));
free(tmp); free(tmp);
free(cmdptr); free(cmdptr);
K_WLOCK(transfer_free); if (item) {
k_add_head(transfer_free, item); K_WLOCK(transfer_free);
K_WUNLOCK(transfer_free); k_add_head(transfer_free, item);
K_WUNLOCK(transfer_free);
}
return CMD_REPLY; return CMD_REPLY;
} }
} else { } else {

Loading…
Cancel
Save