fatal exit without defer
maddin200 opened this issue · comments
Martin Strunz commented
/cmd\dicomutil\main.go line 67
Code:
if err != nil {
log.Fatalf("error parsing data: %v", err) // <-- will not use defer
}
Suyash Kumar commented
I think you are pointing out that log.Fatalf exits the example dicomutil program without running the defered functions? Thanks for pointing it out, I'll make some updates in #278 (probably dicomutil in general could use a refactor to be honest).
Suyash Kumar commented
Addressed in dicomutil in #278