dma - Fix double free buf
authorMatthias Schmidt <matthias@dragonflybsd.org>
Fri, 17 Sep 2010 09:18:13 +0000 (11:18 +0200)
committerMatthias Schmidt <matthias@dragonflybsd.org>
Fri, 17 Sep 2010 09:18:13 +0000 (11:18 +0200)
Author: Peter Pentchev <roam@ringlet.net>

libexec/dma/spool.c

index dbf0822..2355988 100644 (file)
@@ -315,7 +315,7 @@ skip_item:
                if (queuefn != NULL)
                        free(queuefn);
                if (mailfn != NULL)
-                       free(queuefn);
+                       free(mailfn);
        }
        closedir(spooldir);
        return (0);