Browse Source

Fix memory leak

master
Con Kolivas 10 years ago
parent
commit
cecf6406e2
  1. 1
      src/stratifier.c

1
src/stratifier.c

@ -4182,6 +4182,7 @@ static void *statsupdate(void *arg)
char_t = ckalloc(sizeof(char_entry_t)); char_t = ckalloc(sizeof(char_entry_t));
s = json_dumps(val, JSON_NO_UTF8 | JSON_PRESERVE_ORDER); s = json_dumps(val, JSON_NO_UTF8 | JSON_PRESERVE_ORDER);
ASPRINTF(&char_t->buf, "User %s:%s", user->username, s); ASPRINTF(&char_t->buf, "User %s:%s", user->username, s);
dealloc(s);
DL_APPEND(char_list, char_t); DL_APPEND(char_list, char_t);
} }
json_decref(val); json_decref(val);

Loading…
Cancel
Save