Changeset c0a90c2


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
Files:
3 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    }
  • functions.c

    r3c7d086a rc0a90c2  
    32703270            owl_fmtext_append_normal(&fm, line);
    32713271            owl_free(tmp);
     3272            owl_free(line);
    32723273          }
    32733274          if (numlocs>=200) {
  • perlconfig.c

    r4e0f545 rc0a90c2  
    325325    char *ptr = NULL;
    326326    if (owl_perlconfig_is_function("owl::receive_msg")) {
    327       owl_perlconfig_call_with_message(subname?subname
     327      ptr = owl_perlconfig_call_with_message(subname?subname
    328328                                       :"owl::_receive_msg_legacy_wrap", m);
    329329    }
Note: See TracChangeset for help on using the changeset viewer.