diff options
Diffstat (limited to 'lib/libXpm/src/CrDatFrI.c')
-rw-r--r-- | lib/libXpm/src/CrDatFrI.c | 5 |
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); } |