summaryrefslogtreecommitdiff
blob: 38ea9e0da5bbbcb510b6557992c9dde8cf265108 (plain)
1
2
3
4
5
6
7
8
9
--- src/user.cpp
+++ src/user.cpp
@@ -3631,6 +3631,7 @@
     {
       gLog.Error("%sUnable to open picture file (%s):\n%s%s.\n", L_ERRORxSTR,
                                      szFilename, L_BLANKxSTR, strerror(errno));
+      close(source);
       return;
     }