Commit 3f90aa7e authored by Paul Eggert's avatar Paul Eggert

Port make-fingerprint to LeakSanitizer

* lib-src/make-fingerprint.c (buf): Now static,
to pacify LeakSanitizer.
parent 515f5782
Pipeline #1386 passed with stage
in 50 minutes and 15 seconds
...@@ -57,6 +57,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ ...@@ -57,6 +57,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#endif #endif
#endif /* WINDOWSNT */ #endif /* WINDOWSNT */
/* Static (instead of being local to 'main') to pacify LeakSanitizer. */
static char *buf;
int int
main (int argc, char **argv) main (int argc, char **argv)
{ {
...@@ -111,7 +114,7 @@ main (int argc, char **argv) ...@@ -111,7 +114,7 @@ main (int argc, char **argv)
return EXIT_FAILURE; return EXIT_FAILURE;
} }
char *buf = malloc (st.st_size + 1); buf = malloc (st.st_size + 1);
if (!buf) if (!buf)
{ {
perror ("malloc"); perror ("malloc");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment