]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6448 --resolve revert string func patch cos some things free it
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 10 Apr 2014 21:36:13 +0000 (02:36 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 10 Apr 2014 21:36:13 +0000 (02:36 +0500)
src/include/switch_utils.h

index 852c13009dd4f005f8ffbd48eb22cd4077f7515e..751b94632c46e87825adb9c423f29537e7e99cde 100644 (file)
@@ -875,7 +875,7 @@ SWITCH_DECLARE(switch_time_t) switch_str_time(const char *in);
   \param vname the name of the global pointer to modify with the new function
 */
 #define SWITCH_DECLARE_GLOBAL_STRING_FUNC(fname, vname) static void fname(const char *string) { if (!string) return;\
-               if (vname) {vname = NULL;}vname = switch_core_permanent_strdup(string);} static void fname(const char *string)
+               if (vname) {free(vname); vname = NULL;}vname = strdup(string);} static void fname(const char *string)
 
 /*!
   \brief Separate a string into an array based on a character delimiter