diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-03-19 09:58:18 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-03-19 09:58:18 +0100 |
commit | 1fa1ea0f2df62796a89df8f00f49a4e77d7cf478 (patch) | |
tree | c7ff91426f72cb4f3bad1303d41751f1032d0d34 /mysys | |
parent | e853b6ccfda237157f3fe78afe7fbfe048bd76a0 (diff) | |
download | mariadb-git-1fa1ea0f2df62796a89df8f00f49a4e77d7cf478.tar.gz |
MDEV-5404 Can't free data returned by mariadb_dyncol_unpack on windows
add mariadb_dyncol_unpack_free()
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/ma_dyncol.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mysys/ma_dyncol.c b/mysys/ma_dyncol.c index 98319f2aafe..3b5e05f1b01 100644 --- a/mysys/ma_dyncol.c +++ b/mysys/ma_dyncol.c @@ -4317,6 +4317,18 @@ err: } /** + Free arrays allocated by mariadb_dyncol_unpack() + + @param names Where to put names (should be free by user) + @param vals Where to put values (should be free by user) +*/ +void mariadb_dyncol_unpack_free(LEX_STRING *names, DYNAMIC_COLUMN_VALUE *vals) +{ + my_free(names); + my_free(vals); +} + +/** Get not NULL column count @param str The packed string |