Changeset c0a90c2 for commands.c


Ignore:
Timestamp:
Oct 24, 2006, 12:44:58 AM (14 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
1152d45
Parents:
54666e0
Message:
alexmv+yoz's memory leak patches
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r5e0b690 rc0a90c2  
    15561556char *owl_command_multi(int argc, char **argv, char *buff)
    15571557{
    1558   char *lastrv = NULL, *newbuff;
     1558  char *lastrv = NULL, *dupbuff, *newbuff;
    15591559  char **commands;
    15601560  int  ncommands, i;
     
    15631563    return NULL;
    15641564  }
    1565   newbuff = owl_strdup(buff);
    1566   newbuff = skiptokens(newbuff, 1);
     1565  dupbuff = owl_strdup(buff);
     1566  newbuff = skiptokens(dupbuff, 1);
    15671567  if (!strcmp(argv[0], "(")) {
    15681568    for (i=strlen(newbuff)-1; i>=0; i--) {
     
    15841584    lastrv = owl_function_command(commands[i]);
    15851585  }
     1586  owl_free(dupbuff);
    15861587  atokenize_free(commands, ncommands);
    15871588  return lastrv;
     
    19761977      foo=owl_function_create_negative_filter(owl_view_get_filtname(owl_global_get_current_view(&g)));
    19771978      owl_function_change_currentview_filter(foo);
     1979      owl_free(foo);
    19781980      return(NULL);
    19791981    }
Note: See TracChangeset for help on using the changeset viewer.