Changeset 27f6487


Ignore:
Timestamp:
Aug 22, 2009, 12:47:44 AM (15 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
f4d4a00
Parents:
0e5afa2
git-author:
Anders Kaseorg <andersk@mit.edu> (08/21/09 23:19:56)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/22/09 00:47:44)
Message:
Consistently use owl_malloc and friends.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r9e5c9f3 r27f6487  
    19231923      newbuff=owl_strdup("");
    19241924      while (myargc) {
    1925         newbuff=realloc(newbuff, strlen(newbuff)+strlen(myargv[0])+5);
     1925        newbuff=owl_realloc(newbuff, strlen(newbuff)+strlen(myargv[0])+5);
    19261926        strcat(newbuff, myargv[0]);
    19271927        strcat(newbuff, " ");
  • editwin.c

    r5ebc202 r27f6487  
    116116  oe_set_mark(e, -1);
    117117  if (e->killbuf != NULL)
    118     free(e->killbuf);
     118    owl_free(e->killbuf);
    119119  e->killbuf = NULL;
    120120  e->goal_column = -1;
  • filterelement.c

    r4542047 r27f6487  
    217217  fe->field=owl_strdup(field);
    218218  if(owl_regex_create(&(fe->re), re)) {
    219     free(fe->field);
     219    owl_free(fe->field);
    220220    fe->field = NULL;
    221221    return (-1);
  • functions.c

    r0e5afa2 r27f6487  
    887887    path = owl_util_makepath(file);
    888888    ret=owl_zephyr_loadsubs(path, 1);
    889     free(path);
     889    owl_free(path);
    890890  }
    891891
     
    28472847
    28482848  /* first, create the filter */
    2849   f=malloc(sizeof(owl_filter));
     2849  f=owl_malloc(sizeof(owl_filter));
    28502850
    28512851  owl_function_debugmsg("About to filter %s", filter);
  • global.c

    r0e5afa2 r27f6487  
    365365 */
    366366void owl_global_set_confdir(owl_global *g, const char *cd) {
    367   free(g->confdir);
     367  owl_free(g->confdir);
    368368  g->confdir = owl_strdup(cd);
    369   free(g->startupfile);
     369  owl_free(g->startupfile);
    370370  g->startupfile = owl_sprintf("%s/startup", cd);
    371371}
  • message.c

    r9e5c9f3 r27f6487  
    604604      end += strlen(user) + 1;
    605605    }
    606     free(shortuser);
     606    owl_free(shortuser);
    607607    user = strtok(NULL, " ");
    608608  }
  • select.c

    r6249e137 r27f6487  
    170170  }
    171171
    172   d = malloc(sizeof(owl_dispatch));
     172  d = owl_malloc(sizeof(owl_dispatch));
    173173  d->fd = fd;
    174174  d->cfunc = owl_perlconfig_dispatch;
  • zephyr.c

    rc08c70a r27f6487  
    751751          owl_function_makemsg("Message sent to %s on -c %s -i %s\n", tmp, retnotice->z_class, retnotice->z_class_inst);
    752752        }
    753         free(tmp);
     753        owl_free(tmp);
    754754      } else {
    755755        /* class / instance message */
Note: See TracChangeset for help on using the changeset viewer.