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=66346a8b99369f1d77a643e80e5485b414ab918b;hp=ac9b9341f50a0ee1d934bdd2f00ddd1837ab9ae8;hb=d9bb246b3ea1cf259a0000656ed881b2ff464faa;hpb=26ea699acb7f01e0b3431fd6173feb1f09094d8e diff --git a/src/substmap.c b/src/substmap.c index ac9b934..66346a8 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)