X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fcommand.c;h=c400585a7affbdc5fcbfe7261155b1870fa524c8;hb=b19399d5d3b8a6e61ef423b86df56d6ecbd93b78;hp=5411b392d166d6b986d7023ffa3d9b8712d1b66e;hpb=fe3383c0559a453df1e5076fc6faac6d1a11685c;p=pazpar2-moved-to-github.git diff --git a/src/command.c b/src/command.c index 5411b39..c400585 100644 --- a/src/command.c +++ b/src/command.c @@ -1,4 +1,4 @@ -/* $Id: command.c,v 1.1 2006-12-20 20:47:16 quinn Exp $ */ +/* $Id: command.c,v 1.2 2006-12-20 22:19:35 adam Exp $ */ #include #include @@ -90,11 +90,12 @@ static int cmd_show(struct command_session *s, char **argv, int argc) int num = 10; int merged, total; int i; + NMEM nmem_show = nmem_create(); if (argc == 2) num = atoi(argv[1]); - recs = show(s->psession, 0, &num, &merged, &total); + recs = show(s->psession, 0, &num, &merged, &total, nmem_show); for (i = 0; i < num; i++) { @@ -113,6 +114,7 @@ static int cmd_show(struct command_session *s, char **argv, int argc) } command_puts(s, "\n"); } + nmem_destroy(nmem_show); return 1; }