Просмотр исходного кода

dpkg-deb: Fix leak on non-symlink paths when building the package

If it's a symlink it gets inserted into to the symlist, which gets freed
at the end. If it's not we have to free ourselves, which was not being
done.
Guillem Jover лет назад: 16
Родитель
Сommit
e911889c9f
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      dpkg-deb/build.c

+ 1 - 0
dpkg-deb/build.c

@@ -523,6 +523,7 @@ void do_build(const char *const *argv) {
     else {
       if (write(p1[1], fi->fn, strlen(fi->fn)+1) ==- 1)
 	ohshite(_("failed to write filename to tar pipe (data)"));
+      file_info_free(fi);
     }
   close(p3[0]);
   subproc_wait_check(c3, "find", 0);