Commit 8b7b6168 authored by Sakthivel Samidurai's avatar Sakthivel Samidurai Committed by Erich Keane

Fix double free or corruption

Change-Id: I8fc6acf872d758d1a7a9b3157b83555d9d1fbec6
Signed-off-by: default avatarSakthivel Samidurai <sakthivel.samidurai@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2092Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarErich Keane <erich.keane@intel.com>
(cherry picked from commit 0d38c151)
Reviewed-on: https://gerrit.iotivity.org/gerrit/2098
parent 2aec30b6
......@@ -763,6 +763,7 @@ static bool OCParseSingleRepPayload(OCRepPayload** outPayload, CborValue* repPar
if(err)
{
OCRepPayloadDestroy(*outPayload);
*outPayload = NULL;
}
return err;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment