1. shuerhaaken
  2. libtaginfo

Commits

Pavel Vasin  committed 64b3a38

c: fix memory leak

  • Participants
  • Parent commits 25e8cec
  • Branches master

Comments (1)

Files changed (1)

File bindings/c/taginfo_c.cc

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