mirror of
				https://github.com/glebarez/go-sqlite.git
				synced 2025-10-31 11:06:26 +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 { | 			if n != 0 { | ||||||
| 				a, err := s.c.bind(pstmt, n, args) | 				if allocs, err = s.c.bind(pstmt, n, args); err != nil { | ||||||
| 				if err != nil { |  | ||||||
| 					return err | 					return err | ||||||
| 				} | 				} | ||||||
|  |  | ||||||
| 				if len(a) != 0 { |  | ||||||
| 					allocs = append(allocs, a...) |  | ||||||
| 				} |  | ||||||
| 			} | 			} | ||||||
|  |  | ||||||
| 			rc, err := s.c.step(pstmt) | 			rc, err := s.c.step(pstmt) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jan Mercl
					Jan Mercl