- Timestamp:
- Jul 10, 2015, 11:15:40 AM (9 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/Makefile.in
r673 r734 40 40 41 41 sqlapi.o: sqlapi.c sqlapi.h 42 g++ -fPIC ${ XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c sqlapi.c42 g++ -fPIC ${GDAL_CFLAGS} ${XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c sqlapi.c 43 43 44 44 caching.o: caching.c -
trunk/zoo-project/zoo-kernel/sqlapi.c
r654 r734 183 183 sprintf(sqlQuery,"INSERT INTO %s.files (uuid,filename,nature,name) VALUES ('%s','%s','%s',NULL);",schema->value,uusid->value,filename,type); 184 184 execSql(conf,sqlQuery); 185 free(sqlQuery); 185 186 cleanUpResultSet(conf); 186 187 } … … 206 207 uusid->value,sid->value,osid->value); 207 208 execSql(conf,sqlQuery); 209 free(sqlQuery); 208 210 cleanUpResultSet(conf); 209 211 } … … 229 231 sprintf(sqlQuery,"INSERT INTO %s.responses (content,uuid) VALUES ($$%s$$,$$%s$$);",schema->value,tmps,sid->value); 230 232 execSql(conf,sqlQuery); 233 free(sqlQuery); 234 free(tmps); 231 235 cleanUpResultSet(conf); 232 236 } … … 250 254 execSql(conf,sqlQuery); 251 255 cleanUpResultSet(conf); 256 free(sqlQuery); 252 257 return 0; 253 258 } … … 280 285 } 281 286 cleanUpResultSet(conf); 287 free(sqlQuery); 282 288 return (char*)tmp1; 283 289 } … … 316 322 tmp1=NULL; 317 323 cleanUpResultSet(conf); 324 free(sqlQuery); 318 325 return (char*)tmp1; 319 326 } … … 338 345 cleanUpResultSet(conf); 339 346 close_sql(conf); 347 free(sqlQuery); 340 348 end_sql(); 341 349 } … … 363 371 cleanUpResultSet(conf); 364 372 close_sql(conf); 373 free(sqlQuery); 365 374 end_sql(); 366 375 } … … 397 406 if(hasRes<0) 398 407 tmp1=NULL; 408 free(sqlQuery); 399 409 return (char*)tmp1; 400 410 } … … 429 439 if(hasRes<0) 430 440 addToMap(statusInfo,"Status","Failed"); 441 free(sqlQuery); 431 442 return; 432 443 } … … 460 471 } 461 472 cleanUpResultSet(conf); 473 free(sqlQuery); 462 474 return res; 463 475 }
Note: See TracChangeset
for help on using the changeset viewer.