Index: trunk/psModules/src/config/pmConfig.c
===================================================================
--- trunk/psModules/src/config/pmConfig.c	(revision 17991)
+++ trunk/psModules/src/config/pmConfig.c	(revision 18034)
@@ -1150,5 +1150,5 @@
             return NULL;
         }
-        return psMemIncrRefCounter(format);
+        return psMemIncrRefCounter(format); // a second copy, since the first copy sits on config->format
     }
 
@@ -1216,4 +1216,6 @@
     }
     
+    psFree (name); // winning format name (for metaCamera) returned by formatFromHeader
+
     psFree (baseName);
     if (formatName) {
@@ -1225,5 +1227,5 @@
 	*camera = psMemIncrRefCounter(testCamera);
     } 
-    return psMemIncrRefCounter(format);
+    return format; // we do NOT need to incr ref counter: this is the only copy
 }
 
