]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Fix mem leak.
authorDale Weiler <killfieldengine@gmail.com>
Sun, 10 Feb 2013 02:08:17 +0000 (02:08 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Sun, 10 Feb 2013 02:08:17 +0000 (02:08 +0000)
gmqcc.h
pak.c

diff --git a/gmqcc.h b/gmqcc.h
index 206688f4af0f87605d0b71b87c88094e783ef660..6ccc555e3c7f34146b36f0e275c0624469f0e322 100644 (file)
--- 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 f31ec757b11fe27c67d79cd4551c3367dbcfd941..6595a419d51049f27dadb477c8d91842f932537b 100644 (file)
--- 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;
     }