Changeset 83004b0


Ignore:
Timestamp:
Nov 17, 2013, 3:44:14 AM (11 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
release-1.9
Children:
b70556f
Parents:
577f8ab
git-author:
Anders Kaseorg <andersk@mit.edu> (02/18/13 02:50:25)
git-committer:
Anders Kaseorg <andersk@mit.edu> (11/17/13 03:44:14)
Message:
owl_zephyr_loadsubs: Don’t leak memory on error opening ~/.zephyr.subs

Found by cppcheck.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
(cherry picked from commit bbe7d4a8ffa8c6c6b49ff192f54df4c385dfc1cb)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zephyr.c

    rfc2b7ae r83004b0  
    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.