dtinfo: fix coverity issues related to null checks after dereference
This commit is contained in:
@@ -530,8 +530,7 @@ highlight_search_hit(_DtCvSegment* seg, unsigned int vcc, unsigned int len)
|
||||
}
|
||||
DtCvStrVcLenSync(seg);
|
||||
|
||||
if (sibling->handle.string.string)
|
||||
free (sibling->handle.string.string);
|
||||
free (sibling->handle.string.string);
|
||||
if (sibling->client_use) {
|
||||
delete (SegClientData*)sibling->client_use;
|
||||
sibling->client_use = NULL;
|
||||
|
||||
@@ -129,8 +129,7 @@ build_bc_url(UAS_String bookcase_path)
|
||||
fprintf(stderr, "(DEBUG) URL=\"%s\"\n", (char*)bc_locator);
|
||||
#endif
|
||||
|
||||
if (bc_path)
|
||||
free(bc_path);
|
||||
free(bc_path);
|
||||
|
||||
return bc_locator;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user