Changeset 3c0ec97


Ignore:
Timestamp:
Mar 1, 2010, 8:33:49 PM (10 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
release-1.5
Children:
d89c61f
Parents:
c8211b5
git-author:
Anders Kaseorg <andersk@mit.edu> (02/28/10 04:22:37)
git-committer:
Nelson Elhage <nelhage@mit.edu> (03/01/10 20:33:49)
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 r3c0ec97  
    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.