summaryrefslogtreecommitdiff
path: root/lib/libXpm/src/CrDatFrI.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libXpm/src/CrDatFrI.c')
-rw-r--r--lib/libXpm/src/CrDatFrI.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libXpm/src/CrDatFrI.c b/lib/libXpm/src/CrDatFrI.c
index 542662fbb..adb4786d1 100644
--- a/lib/libXpm/src/CrDatFrI.c
+++ b/lib/libXpm/src/CrDatFrI.c
@@ -241,10 +241,11 @@ XpmCreateDataFromXpmImage(
/* exit point, free only locally allocated variables */
exit:
if (header) {
- for (l = 0; l < header_nlines; l++)
+ for (l = 0; l < header_nlines; l++) {
if (header[l])
XpmFree(header[l]);
- XpmFree(header);
+ }
+ XpmFree(header);
}
return(ErrorStatus);
}