1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-04 16:58:42 +03:00

r14273: Fix coverity bug . Memory leak on error path.

Jeremy.
This commit is contained in:
Jeremy Allison 2006-03-13 00:37:57 +00:00 committed by Gerald (Jerry) Carter
parent 1899d8ea28
commit d2be8163f2

@ -2804,8 +2804,10 @@ int get_printer_subkeys( NT_PRINTER_DATA *data, const char* key, fstring **subke
/* return error if the key was not found */
if ( i == data->num_keys )
if ( i == data->num_keys ) {
SAFE_FREE(subkeys_ptr);
return -1;
}
done:
/* tag off the end */