Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions libselinux/src/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ context_t context_new(const char *str)
context_t result = (context_t) malloc(sizeof(context_s_t));
const char *p, *tok;

if (result)
if (result){
result->ptr = n;
else
}else{
free(n);
n=NULL;
}
if (n == 0 || result == 0) {
goto err;
}
Expand Down