Changeset 62a000b


Ignore:
Timestamp:
Mar 1, 2010, 8:15:44 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
b0da027
Parents:
46c7f5b
git-author:
Anders Kaseorg <andersk@mit.edu> (02/28/10 04:22:37)
git-committer:
Anders Kaseorg <andersk@mit.edu> (03/01/10 20:15:44)
Message:
owl_cmddict_execute: Don’t leak buffers when given no arguments.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Alejandro R. Sedeño <asedeno@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cmd.c

    r99525be r62a000b  
    9393  }
    9494 
    95   if (argc < 1) return(NULL);
     95  if (argc < 1) {
     96    owl_parsefree(argv, argc);
     97    owl_free(tmpbuff);
     98    return NULL;
     99  }
    96100
    97101  retval = _owl_cmddict_execute(cd, ctx, strs(argv), argc, cmdbuff);
Note: See TracChangeset for help on using the changeset viewer.