aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2020-10-13 08:55:35 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2020-10-13 08:55:35 -0400
commit8efb4d3a7e1a99794eb27d6ec4c093a46f9d34b3 (patch)
tree2edffffaaf37e1004fce886b827000f212e192a9 /src
parentMerge pull request #3664 from dpellegr/master (diff)
downloadfirejail-8efb4d3a7e1a99794eb27d6ec4c093a46f9d34b3.tar.gz
firejail-8efb4d3a7e1a99794eb27d6ec4c093a46f9d34b3.tar.zst
firejail-8efb4d3a7e1a99794eb27d6ec4c093a46f9d34b3.zip
merges, fix for #3662 etc.
Diffstat (limited to 'src')
-rw-r--r--src/firejail/main.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c
index daa924698..06f81a987 100644
--- a/src/firejail/main.c
+++ b/src/firejail/main.c
@@ -3080,17 +3080,27 @@ int main(int argc, char **argv, char **envp) {
3080 // end of signal-safe code 3080 // end of signal-safe code
3081 //***************************** 3081 //*****************************
3082 3082
3083#if 0
3084// at this point the sandbox was closed and we are on our way out
3085// it would make sense to move this before waitpid above to free some memory
3086// crash for now as of issue #3662 from dhcp code
3083 // free globals 3087 // free globals
3084 if (cfg.profile) { 3088 if (cfg.profile) {
3085 ProfileEntry *prf = cfg.profile; 3089 ProfileEntry *prf = cfg.profile;
3086 while (prf != NULL) { 3090 while (prf != NULL) {
3087 ProfileEntry *next = prf->next; 3091 ProfileEntry *next = prf->next;
3088 free(prf->data); 3092printf("data #%s#\n", prf->data);
3089 free(prf->link); 3093 if (prf->data)
3094 free(prf->data);
3095printf("link #%s#\n", prf->link);
3096 if (prf->link)
3097 free(prf->link);
3090 free(prf); 3098 free(prf);
3091 prf = next; 3099 prf = next;
3092 } 3100 }
3093 } 3101 }
3102#endif
3103
3094 3104
3095 if (WIFEXITED(status)){ 3105 if (WIFEXITED(status)){
3096 myexit(WEXITSTATUS(status)); 3106 myexit(WEXITSTATUS(status));