Index: src/tkt.c
==================================================================
--- src/tkt.c
+++ src/tkt.c
@@ -1171,11 +1171,15 @@
         }else{
           blob_appendf(&tktchng, "J%s%s %#F\n", zPfx,
                        azField[i], strlen(zValue), zValue);
         }
         if( tktEncoding == tktFossilize ){
-          free(azValue[i]);
+          if (azAppend[i]) {
+            free(azAppend[i]);
+          } else if (azValue[i]) {
+            free(azValue[i]);
+          }
         }
       }
       blob_appendf(&tktchng, "K %s\n", zTktUuid);
       blob_appendf(&tktchng, "U %F\n", zUser);
       md5sum_blob(&tktchng, &cksum);

