Changeset bbe7d4a for zephyr.c


Ignore:
Timestamp:
Feb 18, 2013, 2:53:53 AM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10
Children:
a54ffe6, f3ac1ae, b7a74a8
Parents:
6a20996
git-author:
Anders Kaseorg <andersk@mit.edu> (02/18/13 02:50:25)
git-committer:
Anders Kaseorg <andersk@mit.edu> (02/18/13 02:53:53)
Message:
owl_zephyr_loadsubs: Don’t leak memory on error opening ~/.zephyr.subs

Found by cppcheck.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zephyr.c

    r9b3167b rbbe7d4a  
    291291  struct stat statbuff;
    292292
    293   subs = g_new(ZSubscription_t, subSize);
    294293  subsfile = owl_zephyr_dotfile(".zephyr.subs", filename);
    295294
     
    307306  if (!file)
    308307    return -1;
     308
     309  subs = g_new(ZSubscription_t, subSize);
    309310  while (owl_getline(&buffer, file)) {
    310311    if (buffer[0] == '#' || buffer[0] == '\n')
Note: See TracChangeset for help on using the changeset viewer.