summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/GDBM_File/GDBM_File.xs1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/GDBM_File/GDBM_File.xs b/ext/GDBM_File/GDBM_File.xs
index 5f88223eb7..d1f99e2d9e 100644
--- a/ext/GDBM_File/GDBM_File.xs
+++ b/ext/GDBM_File/GDBM_File.xs
@@ -40,6 +40,7 @@ static void
output_datum(pTHX_ SV *arg, char *str, int size)
{
sv_setpvn(arg, str, size);
+# undef free
free(str);
}