]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Fix another two leaks
authorDale Weiler <killfieldengine@gmail.com>
Thu, 3 Jan 2013 21:38:07 +0000 (21:38 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Thu, 3 Jan 2013 21:38:07 +0000 (21:38 +0000)
correct.c

index 9cadde260c653ef66ac466b0c82508686a398ae5..04b0d3864985d091a154603e51e299c6d13da035 100644 (file)
--- a/correct.c
+++ b/correct.c
@@ -187,8 +187,8 @@ static size_t correct_alteration(const char *ident, char **array, size_t index)
                     false
                 ),
                 correct_strndup (
-                    ident+itr+1,
-                    len - (itr + 1)
+                    ident + (itr+1),
+                    len   - (itr+1)
                 ),
                 true
             );
@@ -285,6 +285,8 @@ static char **correct_known(ht table, char **array, size_t rows, size_t *next) {
                 res[len++] = end[jtr];
             }
         }
+
+        mem_d(end);
     }
 
     *next = len;