Commits

Pavel Vasin  committed 64b3a38

c: fix memory leak

  • Participants
  • Parent commits 25e8cec

Comments (1)

Files changed (1)

File bindings/c/taginfo_c.cc

     StringList list;
     for(int j = 0; j < length; j++) {
         if(array[j]) {
-            list.append(::strdup(array[j]));
+            list.append(array[j]);
         }
     }
     return list;