migrating namecache to use SQ lib
authorChristian Grothoff <christian@grothoff.org>
Sun, 12 Mar 2017 16:11:47 +0000 (17:11 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sun, 12 Mar 2017 16:11:47 +0000 (17:11 +0100)
src/namecache/plugin_namecache_sqlite.c

index 17f671fe5a79f56ba44fd8f72e2e246f2c31b7bb..2f7b2a9816c489acf854d72bc0a9b9dfbf7d47d2 100644 (file)
@@ -537,6 +537,7 @@ namecache_sqlite_lookup_block (void *cls,
                sizeof (struct GNUNET_CRYPTO_EcdsaSignature) != block_size) )
     {
       GNUNET_break (0);
+      GNUNET_SQ_cleanup_result (rs);
       ret = GNUNET_SYSERR;
     }
     else
@@ -546,6 +547,7 @@ namecache_sqlite_lookup_block (void *cls,
                  GNUNET_h2s_full (query));
       iter (iter_cls,
             block);
+      GNUNET_SQ_cleanup_result (rs);
       ret = GNUNET_YES;
     }
   }