git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1728 fd59a12c-fef9-0310-b244-a6a79926bd2f
@@ -166,6 +166,12 @@ int corosync_main_config_read_logging (
}
*/
+
+ /* free old string on reload */
+ if (main_config->logfile) {
+ free(main_config->logfile);
+ main_config->logfile = NULL;
+ }
if (!objdb_get_string (objdb,object_service_handle, "logfile", &value)) {
main_config->logfile = strdup (value);