X-Git-Url: http://www.wagner.pp.ru/gitweb/?p=oss%2Fcatdoc.git;a=blobdiff_plain;f=src%2Fsubstmap.c;h=fcd8ead52e1e9f22a7e95b48272a33f8785a079b;hp=6e289243b524c6b1fca3fdb51f86abd0e65c6ac9;hb=b7046520d2de550b7ac99599546fe0a5673470e6;hpb=35d0d9bcbb33b64c3cfd83548fc9fc1cbdb5295e diff --git a/src/substmap.c b/src/substmap.c index 6e28924..fcd8ead 100644 --- a/src/substmap.c +++ b/src/substmap.c @@ -51,7 +51,8 @@ SUBSTMAP read_substmap(char* filename) { } f=fopen(path,"rb"); if (!f) { - perror("catdoc"); + perror(path); + free(map); return NULL; } if (input_buffer)