diff options
-rw-r--r-- | service/instance.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/service/instance.c b/service/instance.c index ee25868..14da862 100644 --- a/service/instance.c +++ b/service/instance.c @@ -1021,11 +1021,10 @@ instance_config_cleanup(struct service_instance *in) static void instance_config_move_strdup(char **dst, char *src) { - if (!*dst) - return; - - free(*dst); - *dst = NULL; + if (*dst) { + free(*dst); + *dst = NULL; + } if (!src) return; |