projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
515f578
)
Port make-fingerprint to LeakSanitizer
author
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 21 Apr 2019 06:10:37 +0000
(23:10 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 21 Apr 2019 06:10:57 +0000
(23:10 -0700)
* lib-src/make-fingerprint.c (buf): Now static,
to pacify LeakSanitizer.
lib-src/make-fingerprint.c
patch
|
blob
|
history
diff --git
a/lib-src/make-fingerprint.c
b/lib-src/make-fingerprint.c
index 38a3357614899866ed78c3e87f024423021ce25f..79bd007a5f9682487afb82876a36b88365656148 100644
(file)
--- a/
lib-src/make-fingerprint.c
+++ b/
lib-src/make-fingerprint.c
@@
-57,6
+57,9
@@
along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#endif
#endif /* WINDOWSNT */
+/* Static (instead of being local to 'main') to pacify LeakSanitizer. */
+static char *buf;
+
int
main (int argc, char **argv)
{
@@
-111,7
+114,7
@@
main (int argc, char **argv)
return EXIT_FAILURE;
}
-
char *
buf = malloc (st.st_size + 1);
+ buf = malloc (st.st_size + 1);
if (!buf)
{
perror ("malloc");