X-Git-Url: http://www.wagner.pp.ru/gitweb/?p=oss%2Fcatdoc.git;a=blobdiff_plain;f=src%2Fsubstmap.c;fp=src%2Fsubstmap.c;h=fcd8ead52e1e9f22a7e95b48272a33f8785a079b;hp=6e289243b524c6b1fca3fdb51f86abd0e65c6ac9;hb=7490451ae999b0418f189a90ec110c281c9d8d10;hpb=f03d3bbce7b36e358df5ee15fab1af190ffcad5a 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)