]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/printers.c
Mirror fix from trunk.
[thirdparty/cups.git] / scheduler / printers.c
index ecf2ce1d489d0ebe327e3c95856641fa6ee9cb58..7a5ee0c56cc34efdb66a02e1de311ee3d9abfc5a 100644 (file)
@@ -1906,6 +1906,7 @@ cupsdSetPrinterAttr(
 
     if (!attr)
     {
+      free(temp);
       cupsdLogMessage(CUPSD_LOG_ERROR,
                       "Unable to allocate memory for printer attribute "
                      "(%d values)", count);
@@ -1956,6 +1957,7 @@ cupsdSetPrinterAttr(
 
     if (!attr)
     {
+      free(temp);
       cupsdLogMessage(CUPSD_LOG_ERROR,
                       "Unable to allocate memory for printer attribute "
                      "(%d values)", count);