]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/unicode/charcnv.c
Fix SIGHUP config reloading
[netatalk.git] / libatalk / unicode / charcnv.c
index 785e47720f1d7ab2e74ce2be611c93164386fdb9..d72848e936c257f2a465944c0c2a2ca9f31ee954 100644 (file)
@@ -95,6 +95,16 @@ int set_charset_name(charset_t ch, const char *name)
     return 0;
 }
 
+void free_charset_names(void)
+{
+    for (int ch = 0; ch < MAX_CHARSETS; ch++) {
+        if (charset_names[ch]) {
+            free(charset_names[ch]);
+            charset_names[ch] = NULL;
+        }
+    }
+}
+
 static struct charset_functions* get_charset_functions (charset_t ch)
 {
     if (charsets[ch] != NULL)