]> granicus.if.org Git - postgis/commitdiff
Remember to close the iconv handle
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 27 May 2010 14:03:24 +0000 (14:03 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 27 May 2010 14:03:24 +0000 (14:03 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5649 b70326c6-7e19-0410-871a-916f4a2858ee

loader/shp2pgsql-core.c

index f4a0383f8db512dbee0f3220c63631df57a3b0b3..90a968aadc90c94f08ceda8dd053b4bab59b53f9 100644 (file)
@@ -102,6 +102,7 @@ int utf8(const char *fromcode, char *inputbuf, char **outputbuf)
         return UTF8_BAD_RESULT;
 #else
         free(*outputbuf);
+        iconv_close(cd);
         return UTF8_NO_RESULT;        
 #endif
     }