mirror of
				https://github.com/glebarez/go-sqlite.git
				synced 2025-10-31 02:56:22 +08:00 
			
		
		
		
	fix manual memory management error, updates #53
This commit is contained in:
		| @@ -604,14 +604,9 @@ func (s *stmt) query(ctx context.Context, args []driver.NamedValue) (r driver.Ro | ||||
| 			} | ||||
|  | ||||
| 			if n != 0 { | ||||
| 				a, err := s.c.bind(pstmt, n, args) | ||||
| 				if err != nil { | ||||
| 				if allocs, err = s.c.bind(pstmt, n, args); err != nil { | ||||
| 					return err | ||||
| 				} | ||||
|  | ||||
| 				if len(a) != 0 { | ||||
| 					allocs = append(allocs, a...) | ||||
| 				} | ||||
| 			} | ||||
|  | ||||
| 			rc, err := s.c.step(pstmt) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jan Mercl
					Jan Mercl