Browse Source
This already fixed in htop's repo at commit cceab15b9dbdc2f0914c8d479cefa429d1c0daafandroid-5
Leonid Plyushch
7 years ago
committed by
Fredrik Fornwall
2 changed files with 15 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||
diff -uNr htop-2.0.2/StringUtils.c htop-2.0.2.mod/StringUtils.c
|
|||
--- htop-2.0.2/StringUtils.c 2016-06-20 18:11:13.000000000 +0300
|
|||
+++ htop-2.0.2.mod/StringUtils.c 2017-09-26 13:33:10.596064441 +0300
|
|||
@@ -88,6 +88,10 @@
|
|||
} |
|||
|
|||
void String_freeArray(char** s) { |
|||
+ if (!s) {
|
|||
+ return;
|
|||
+ }
|
|||
+
|
|||
for (int i = 0; s[i] != NULL; i++) { |
|||
free(s[i]); |
|||
} |
Loading…
Reference in new issue