Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 5ee639374 -> fc7ed088a


DISPATCH-954 - Fixed issue suggested by coverity scan tool. This closes #277


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/fc7ed088
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/fc7ed088
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/fc7ed088

Branch: refs/heads/master
Commit: fc7ed088a719df0571575d52404314fc70631777
Parents: 5ee6393
Author: Fernando Giorgetti <fgior...@redhat.com>
Authored: Mon Apr 2 16:15:19 2018 -0300
Committer: Ganesh Murthy <gmur...@redhat.com>
Committed: Mon Apr 2 15:20:13 2018 -0400

----------------------------------------------------------------------
 router/src/main.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/fc7ed088/router/src/main.c
----------------------------------------------------------------------
diff --git a/router/src/main.c b/router/src/main.c
index b6c9d53..c66ba4f 100644
--- a/router/src/main.c
+++ b/router/src/main.c
@@ -209,12 +209,11 @@ static void daemon_process(const char *config_path, const 
char *python_pkgdir,
                              cur_path,
                              !strcmp("/", cur_path)? "":"/",
                              config_path);
-                }
-
-                // Releasing temporary path variable
-                memset(cur_path, 0, path_size * sizeof(char));
-                free(cur_path);
 
+                    // Releasing temporary path variable
+                    memset(cur_path, 0, path_size * sizeof(char));
+                    free(cur_path);
+                }
             }
 
             //


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to