From: Fredrik Tolf Date: Fri, 17 Oct 2008 23:45:47 +0000 (+0200) Subject: Fixed typo-related memory leak. X-Git-Tag: 1.3~9 X-Git-Url: http://dolda2000.com/gitweb/?p=doldaconnect.git;a=commitdiff_plain;h=7bb3e8c17cf3da0c9911dc6d21795403317f3636 Fixed typo-related memory leak. --- diff --git a/daemon/fnet-dc.c b/daemon/fnet-dc.c index 348a53a..2e490ea 100644 --- a/daemon/fnet-dc.c +++ b/daemon/fnet-dc.c @@ -872,7 +872,7 @@ static void cmd_hubname(struct socket *sk, struct fnetnode *fn, char *cmd, char struct dchub *hub; hub = fn->data; - if(hub->nativename == NULL) + if(hub->nativename != NULL) free(hub->nativename); hub->nativename = sstrdup(args); buf = icmbstowcs(args, hub->charset);