mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
Prevent memory leak.
This commit is contained in:
1 parent
1abe47dc99
commit
e061a1b537
2 files changed
+11
No files matched your search
@@ -1,7 +1,13 @@
|
|||||||
|
2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
|
||||||
|
Prevent memory leak.
|
||||||
|
|
||||||
2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
|
2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
|
* grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
|
||||||
(main): Close file.
|
(main): Close file.
|
||||||
|
Reported by: David Volgyes <dvolgyes>.
|
||||||
|
|
||||||
2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
|
2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
|||||||
@@ -277,6 +277,11 @@ rs_recover (gf_single_t *m, grub_size_t s, grub_size_t rs)
|
|||||||
free (errpot);
|
free (errpot);
|
||||||
free (errpos);
|
free (errpos);
|
||||||
free (sy);
|
free (sy);
|
||||||
|
#else
|
||||||
|
scratch -= rs2 * sizeof (gf_single_t);
|
||||||
|
scratch -= rs2 * sizeof (gf_single_t);
|
||||||
|
scratch -= rs2 * sizeof (int);
|
||||||
|
scratch -= rs * sizeof (gf_single_t);
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user