1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

ndr: Free memory in torture test to satisfy sanitizer

Signed-off-by: Swen Schillig <swen@linux.ibm.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Matthias Dieter Wallnöfer <mdw@samba.org>
This commit is contained in:
Swen Schillig 2019-07-29 10:23:14 +02:00 committed by Andrew Bartlett
parent 235288acae
commit bb8cc5956f
2 changed files with 13 additions and 0 deletions

View File

@ -4173,6 +4173,8 @@ static bool cab_file_plain_check(struct torture_context *tctx,
torture_assert_data_blob_equal(tctx, r->cfdata[0].ab, blob, "ab");
data_blob_free(&blob);
return true;
}
@ -4236,6 +4238,8 @@ static bool cab_file_MSZIP_check(struct torture_context *tctx,
torture_assert_data_blob_equal(tctx, r->cfdata[0].ab, blob, "ab");
data_blob_free(&blob);
return true;
}
@ -4305,6 +4309,8 @@ static bool cab_file_LZX_check(struct torture_context *tctx,
/* once we have LZX compression support we can enable this test */
torture_assert_data_blob_equal(tctx, r->cfdata[0].ab, blob, "ab");
#endif
data_blob_free(&blob);
return true;
}

View File

@ -141,6 +141,9 @@ static bool clusapi_PROPERTY_LIST_check(struct torture_context *tctx,
torture_assert_int_equal(tctx, r->propertyValues[5].PropertyValues.Padding.length, 0, "PropertyValues.Padding.length");
torture_assert_int_equal(tctx, r->propertyValues[5].end_mark, CLUSPROP_SYNTAX_ENDMARK, "end_mark");
data_blob_free(&blob_dword_null);
data_blob_free(&blob_dword_one);
return true;
}
@ -362,6 +365,10 @@ static bool clusapi_PROPERTY_LIST_check2(struct torture_context *tctx,
torture_assert_int_equal(tctx, r->propertyValues[11].PropertyValues.Padding.length, 0, "PropertyValues.Padding.length");
torture_assert_int_equal(tctx, r->propertyValues[11].end_mark, CLUSPROP_SYNTAX_ENDMARK, "end_mark");
data_blob_free(&blob_dword_null);
data_blob_free(&blob_dword_one);
data_blob_free(&blob_dword);
return true;
}