Skip to content

Commit 6d7ada9

Browse files
author
Ralph Castain
committed
Silence Coverity warning
1 parent efafd62 commit 6d7ada9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

orte/util/context_fns.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* All rights reserved.
1212
* Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
1313
* Copyright (c) 2008-2010 Cisco Systems, Inc. All rights reserved.
14-
* Copyright (c) 2014 Intel, Inc. All rights reserved.
14+
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
1515
* Copyright (c) 2014 Research Organization for Information Science
1616
* and Technology (RIST). All rights reserved.
1717
* $COPYRIGHT$
@@ -139,9 +139,7 @@ int orte_util_check_context_app(orte_app_context_t *context, char **env)
139139
if (NULL == tmp) {
140140
return ORTE_ERR_EXE_NOT_FOUND;
141141
}
142-
if (NULL != context->app) {
143-
free(context->app);
144-
}
142+
free(context->app);
145143
context->app = tmp;
146144
} else {
147145
free(tmp);

0 commit comments

Comments
 (0)