opkg: balance the installed_files reference count
[oweals/opkg-lede.git] / libopkg / pkg_extract.c
index 23356eab205edc60489547ae558a844ef70efbba..f97218234088a676b938ba44c30da730409d6315 100644 (file)
@@ -1,4 +1,4 @@
-/* pkg_extract.c - the itsy package management system
+/* pkg_extract.c - the opkg package management system
 
    Carl D. Worth
 
@@ -136,6 +136,8 @@ int pkg_extract_data_file_names_to_file(pkg_t *pkg, const char *file_name)
               } else {
                    fputs(data_file, file);
               }
+              free(line);
+              line=NULL;
          }
      }
      fclose(tmp);