ceb09b
--- a/docs/conf/magic	2019/07/05 11:22:46	1862603
ceb09b
+++ b/docs/conf/magic	2019/07/05 11:26:12	1862604
ceb09b
@@ -87,7 +87,7 @@
ceb09b
 # Microsoft WAVE format (*.wav)
ceb09b
 # [GRR 950115:  probably all of the shorts and longs should be leshort/lelong]
ceb09b
 #					Microsoft RIFF
ceb09b
-0	string		RIFF		audio/unknown
ceb09b
+0	string		RIFF		
ceb09b
 #					- WAVE format
ceb09b
 >8	string		WAVE		audio/x-wav
ceb09b
 # MPEG audio.
ceb09b
--- a/modules/metadata/mod_mime_magic.c	2019/07/05 11:22:46	1862603
ceb09b
+++ b/modules/metadata/mod_mime_magic.c	2019/07/05 11:26:12	1862604
ceb09b
@@ -606,7 +606,7 @@
ceb09b
     /* high overhead for 1 char - just hope they don't do this much */
ceb09b
     str[0] = c;
ceb09b
     str[1] = '\0';
ceb09b
-    return magic_rsl_add(r, str);
ceb09b
+    return magic_rsl_add(r, apr_pstrdup(r->pool, str));
ceb09b
 }
ceb09b
 
ceb09b
 /* allocate and copy a contiguous string from a result string list */