From: Dale Weiler Date: Sun, 10 Feb 2013 02:08:17 +0000 (+0000) Subject: Fix mem leak. X-Git-Tag: before-library~120 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b0c6dc5ab2fc337a4e04f0c4acb0d2214638d829;p=xonotic%2Fgmqcc.git Fix mem leak. --- diff --git a/gmqcc.h b/gmqcc.h index 206688f..6ccc555 100644 --- a/gmqcc.h +++ b/gmqcc.h @@ -1118,13 +1118,13 @@ enum { # define GMQCC_TYPE_FLAGS # define GMQCC_DEFINE_FLAG(X) X, # include "opts.def" - COUNT_FLAGS + COUNT_FLAGS, }; static const opts_flag_def opts_flag_list[] = { # define GMQCC_TYPE_FLAGS # define GMQCC_DEFINE_FLAG(X) { #X, LONGBIT(X) }, # include "opts.def" - { NULL, LONGBIT(0) } + { NULL, LONGBIT(0)} }; enum { diff --git a/pak.c b/pak.c index f31ec75..6595a41 100644 --- a/pak.c +++ b/pak.c @@ -195,6 +195,7 @@ static pak_file_t *pak_open_write(const char *file) { */ /* TODO backup directory clean */ + mem_d(pak); return NULL; }