Fix mem leak.

This commit is contained in:
Dale Weiler 2013-02-10 02:08:17 +00:00
parent e4554892b0
commit b0c6dc5ab2
2 changed files with 3 additions and 2 deletions

View file

@ -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 {

1
pak.c
View file

@ -195,6 +195,7 @@ static pak_file_t *pak_open_write(const char *file) {
*/
/* TODO backup directory clean */
mem_d(pak);
return NULL;
}