From 936f41ec0ce1736e74b2fda2c65249956498c777 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 12 Dec 2020 17:20:40 +0000 Subject: Smart pointer stmt to fix leak --- libmysqlpp/my-command.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmysqlpp/my-command.h') diff --git a/libmysqlpp/my-command.h b/libmysqlpp/my-command.h index 9b6d72a..4a6426b 100644 --- a/libmysqlpp/my-command.h +++ b/libmysqlpp/my-command.h @@ -37,7 +37,7 @@ namespace MySQL { void * realloc(void * buffer, size_t size); const Connection * c; - MYSQL_STMT * stmt; + std::unique_ptr stmt; typedef std::vector Binds; Binds binds; bool paramsNeedBinding; -- cgit v1.2.3