Index: branches/branch-1.5/docs/contribute/release.rst
===================================================================
--- branches/branch-1.5/docs/contribute/release.rst	(revision 732)
+++ branches/branch-1.5/docs/contribute/release.rst	(revision 736)
@@ -77,7 +77,14 @@
     cd zoo-project/zoo-kernel
     autoconf
+    # In case you did not build ZOO-Kernel
     cd ../../..
+    # In case you built ZOO-Kernel, then remove the generated file from the archive
+    make clean
+    rm -f  {Makefile,ZOOMakefile.opts}
+    cd ../../..
+    # In case you built one or more ZOO-Services, then remove the generated file from the archive
+    rm $(find ./zoo-project-$VERSION/zoo-project/zoo-services -name "*zo")
     # Remove documentation from the archive
-    rm -rf ./zoo-project-$VERSION/docs
+    rm -rf ./zoo-project-$VERSION/{docs,workshop}
     tar -cvjf ./zoo-project-$VERSION.tar.bz2 ./zoo-project-$VERSION
     zip -r ./zoo-project-$VERSION.zip ./zoo-project-$VERSION
Index: branches/branch-1.5/zoo-project/zoo-kernel/Makefile.in
===================================================================
--- branches/branch-1.5/zoo-project/zoo-kernel/Makefile.in	(revision 732)
+++ branches/branch-1.5/zoo-project/zoo-kernel/Makefile.in	(revision 736)
@@ -40,5 +40,5 @@
 
 sqlapi.o: sqlapi.c sqlapi.h
-	g++ -fPIC ${XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c sqlapi.c
+	g++ -fPIC ${GDAL_CFLAGS} ${XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c sqlapi.c
 
 caching.o: caching.c
@@ -112,5 +112,5 @@
 	 ln -s ${LIBZOO_SERVICE} libzoo_service.${EXT})
 	install -d ${DESTDIR}${INST_INCLUDE}/zoo
-	install service.h service_internal.h ${DESTDIR}${INST_INCLUDE}/zoo
+	install sqlapi.h service.h service_internal.h ${DESTDIR}${INST_INCLUDE}/zoo
 
 clean:
Index: branches/branch-1.5/zoo-project/zoo-kernel/sqlapi.c
===================================================================
--- branches/branch-1.5/zoo-project/zoo-kernel/sqlapi.c	(revision 732)
+++ branches/branch-1.5/zoo-project/zoo-kernel/sqlapi.c	(revision 736)
@@ -183,4 +183,5 @@
     sprintf(sqlQuery,"INSERT INTO %s.files (uuid,filename,nature,name) VALUES ('%s','%s','%s',NULL);",schema->value,uusid->value,filename,type);
   execSql(conf,sqlQuery);
+  free(sqlQuery);
   cleanUpResultSet(conf);
 }
@@ -206,4 +207,5 @@
 	  uusid->value,sid->value,osid->value);
   execSql(conf,sqlQuery);
+  free(sqlQuery);
   cleanUpResultSet(conf);
 }
@@ -229,4 +231,6 @@
   sprintf(sqlQuery,"INSERT INTO %s.responses (content,uuid) VALUES ($$%s$$,$$%s$$);",schema->value,tmps,sid->value);
   execSql(conf,sqlQuery);
+  free(sqlQuery);
+  free(tmps);
   cleanUpResultSet(conf);
 }
@@ -250,4 +254,5 @@
   execSql(conf,sqlQuery);
   cleanUpResultSet(conf);
+  free(sqlQuery);
   return 0;
 }
@@ -280,4 +285,5 @@
   }
   cleanUpResultSet(conf);
+  free(sqlQuery);
   return (char*)tmp1;
 }
@@ -316,4 +322,5 @@
     tmp1=NULL;
   cleanUpResultSet(conf);
+  free(sqlQuery);
   return (char*)tmp1;
 }
@@ -338,4 +345,5 @@
   cleanUpResultSet(conf);
   close_sql(conf);
+  free(sqlQuery);
   end_sql();
 }
@@ -363,4 +371,5 @@
   cleanUpResultSet(conf);
   close_sql(conf);
+  free(sqlQuery);
   end_sql();
 }
@@ -397,4 +406,5 @@
   if(hasRes<0)
     tmp1=NULL;
+  free(sqlQuery);
   return (char*)tmp1;
 }
@@ -429,4 +439,5 @@
   if(hasRes<0)
     addToMap(statusInfo,"Status","Failed");
+  free(sqlQuery);
   return;
 }
@@ -460,4 +471,5 @@
   }
   cleanUpResultSet(conf);
+  free(sqlQuery);
   return res;
 }
