Преглед изворни кода

dselect: Do not leak keybindings from describenext()

The code affected is currently unused.

Warned-by: coverity
Guillem Jover пре 12 година
родитељ
комит
a94d04a192
2 измењених фајлова са 2 додато и 0 уклоњено
  1. 1 0
      debian/changelog
  2. 1 0
      dselect/baselist.cc

+ 1 - 0
debian/changelog

@@ -8,6 +8,7 @@ dpkg (1.17.9) UNRELEASED; urgency=low
   * Do not leak the filepackages iterator when a directory is used by other
   * Do not leak the filepackages iterator when a directory is used by other
     packages.
     packages.
   * Fix short lived memory leaks in «dpkg-split --split».
   * Fix short lived memory leaks in «dpkg-split --split».
+  * Fix memory leak in unused Keybindings screen in dselect.
 
 
   [ Updated scripts translations ]
   [ Updated scripts translations ]
   * French (Steve Petruzzello). Closes: #746350
   * French (Steve Petruzzello). Closes: #746350

+ 1 - 0
dselect/baselist.cc

@@ -272,6 +272,7 @@ void baselist::itd_keys() {
     if (x >= givek) y++;
     if (x >= givek) y++;
     mvwaddstr(infopad, y,givek, ta[0]);
     mvwaddstr(infopad, y,givek, ta[0]);
     waddch(infopad,'\n');
     waddch(infopad,'\n');
+    delete [] ta;
   }
   }
 }
 }